Skip to content

Commit 66893c1

Browse files
author
lucifer
committed
feat: schedule
1 parent e6a0c3e commit 66893c1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/generate.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: generate
22
on:
33
push:
4+
# Run workflow automatically
5+
schedule:
6+
# Runs every hour
7+
- cron: "0 * * * *"
48
jobs:
59
generate:
610
runs-on: ubuntu-latest
@@ -15,12 +19,12 @@ jobs:
1519
with:
1620
node-version: "14"
1721
- run: npm install
18-
- name: generate users
22+
- name: generate data
1923
env:
2024
secret: ${{secrets.GENERATE}}
2125
run: npm run generate
2226
- name: Commit static
2327
run: |
2428
git config --global user.name 'robot'
25-
git commit -am "feat: automate generate users"
29+
git commit -am "feat: automate generate data"
2630
git push

0 commit comments

Comments
 (0)