Skip to content

Commit 527317d

Browse files
author
ziye12
authored
Add files via upload
1 parent 22f11b2 commit 527317d

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/QQread.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: QQ阅读APP
5+
6+
on:
7+
workflow_dispatch:
8+
schedule:
9+
- cron: '30 1-23 * * *'
10+
watch:
11+
types: started
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
if: github.event.repository.owner.id == github.event.sender.id
17+
env:
18+
QQREADAPP_HEADER: ${{ secrets.QQREADAPP_HEADER }}
19+
QQREADAPP_VIDEOHD: ${{ secrets.QQREADAPP_VIDEOHD }}
20+
COOKIES_SPLIT: ${{ secrets.COOKIES_SPLIT }}
21+
22+
steps:
23+
- name: Checkout
24+
run: |
25+
git clone https://github.com/ziye12/JavaScript.git ~/JavaScript
26+
- name: Use Node.js 12.x
27+
uses: actions/setup-node@v1
28+
with:
29+
node-version: 12.x
30+
- name: npm install
31+
if: env.QQREADAPP_HEADER
32+
run: |
33+
cd ~/JavaScript
34+
npm install
35+
- name: '运行 【QQ阅读APP】'
36+
if: env.QQREADAPP_HEADER
37+
run: |
38+
cd ~/JavaScript
39+
node Task/QQread.js
40+
env:
41+
42+
PUSH_KEY: ${{ secrets.PUSH_KEY }}
43+
BARK_PUSH: ${{ secrets.BARK_PUSH }}
44+
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
45+
TG_USER_ID: ${{ secrets.TG_USER_ID }}
46+
BARK_SOUND: ${{ secrets.BARK_SOUND }}
47+
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
48+
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}
49+
50+

0 commit comments

Comments
 (0)