File tree 2 files changed +4
-10
lines changed
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
schedule :
5
5
- cron : " 1 0 * * *"
6
- defaults :
7
- run :
8
- working-directory : schedule
9
6
10
7
jobs :
11
8
Daily :
12
9
runs-on : ubuntu-latest
13
10
steps :
14
- - name : daily problem
11
+ - name : daily problem and daily check
15
12
env :
16
13
issueToken : ${{secrets.issueToken}}
17
- run : ls
18
- - name : daily check
19
- env :
20
- issueToken : ${{secrets.issueToken}}
21
- run : node daily-check.js
14
+ run : npm run daily-schedule
Original file line number Diff line number Diff line change 6
6
"start" : " NODE_ENV=production node bin/www" ,
7
7
"dev" : " NODE_ENV=development ./node_modules/.bin/nodemon bin/www" ,
8
8
"prd" : " pm2 start bin/www" ,
9
- "test" : " echo \" Error: no test specified\" && exit 1"
9
+ "test" : " echo \" Error: no test specified\" && exit 1" ,
10
+ "daily-schedule" : " node scedule/daily-problem.js && node scedule/daily-check.js"
10
11
},
11
12
"dependencies" : {
12
13
"@koa/cors" : " ^3.1.0" ,
You can’t perform that action at this time.
0 commit comments