Skip to content

Commit 0539a95

Browse files
authored
Create jukan.yml
1 parent 6b5fb6d commit 0539a95

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

‎.github/workflows/jukan.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
2+
name: 聚看点
3+
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: '*/10 */2 * * *'
8+
watch:
9+
types: started
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
if: github.event.repository.owner.id == github.event.sender.id
14+
env:
15+
JUKAN_COOKIE: ${{ secrets.JUKAN_COOKIE }}
16+
JUKAN_BODY: ${{ secrets.JUKAN_BODY }}
17+
TZ: Asia/shanghai
18+
steps:
19+
- name: Checkout
20+
run: |
21+
git clone https://github.com/Sunert/Scripts.git ~/Scripts
22+
- name: Use Node.js 12.x
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: 12.x
26+
- name: npm install
27+
run: |
28+
cd ~/Scripts
29+
npm install
30+
- name: '运行 【聚看点】'
31+
if: env.JUKAN_COOKIE
32+
run: |
33+
cd ~/Scripts
34+
node Task/jukan.js
35+
env:
36+
PUSH_KEY: ${{ secrets.PUSH_KEY }}
37+
BARK_PUSH: ${{ secrets.BARK_PUSH }}
38+
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
39+
TG_USER_ID: ${{ secrets.TG_USER_ID }}
40+
BARK_SOUND: ${{ secrets.BARK_SOUND }}
41+
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
42+
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}

0 commit comments

Comments
 (0)