Skip to content

Commit 715351a

Browse files
author
lucifer
committed
-
1 parent 14d6a47 commit 715351a

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

Diff for: .github/workflows/schedule.yaml

+2-9
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,12 @@ on:
33
push:
44
schedule:
55
- cron: "1 0 * * *"
6-
defaults:
7-
run:
8-
working-directory: schedule
96

107
jobs:
118
Daily:
129
runs-on: ubuntu-latest
1310
steps:
14-
- name: daily problem
11+
- name: daily problem and daily check
1512
env:
1613
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

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"start": "NODE_ENV=production node bin/www",
77
"dev": "NODE_ENV=development ./node_modules/.bin/nodemon bin/www",
88
"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"
1011
},
1112
"dependencies": {
1213
"@koa/cors": "^3.1.0",

0 commit comments

Comments
 (0)