File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 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 : 企鹅读书
5+
6+ on :
7+ workflow_dispatch :
8+ schedule :
9+ - cron : ' */12 * * * *'
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+ QQREAD_HEADER : ${{ secrets.QQREAD_HEADER }}
19+ QQREAD_TIMEURL : ${{ secrets.QQREAD_TIMEURL }}
20+ QQREAD_TIMEHD : ${{ secrets.QQREAD_TIMEHD }}
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.QQREAD_HEADER
32+ run : |
33+ cd ~/JavaScript
34+ npm install
35+ - name : ' 运行 【企鹅读书】'
36+ if : env.QQREAD_HEADER
37+ run : |
38+ cd ~/JavaScript
39+ node Task/qqreads.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+
You can’t perform that action at this time.
0 commit comments