Skip to content

Commit b2e63bf

Browse files
author
lucifer
committed
fix: 拆出两个 workflow
1 parent a6fb1ee commit b2e63bf

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

Diff for: .github/workflows/generate.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: generate
2+
on:
3+
push:
4+
jobs:
5+
generate:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Check out repository code
9+
uses: actions/checkout@v2
10+
- name: run npm
11+
uses: actions/setup-node@v2
12+
with:
13+
node-version: "14"
14+
- run: npm install
15+
- name: generate users
16+
env:
17+
secret: ${{secrets.secret}
18+
run: npm run generate
19+
- name: Commit static
20+
run: |
21+
git config --global user.name 'robot'
22+
git commit -am "feat: automate generate users"
23+
git push

Diff for: .github/workflows/schedule.yaml

-22
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,3 @@ jobs:
2424
git config --global user.name 'robot'
2525
git commit -am "feat: from daily schedule"
2626
git push
27-
on:
28-
push:
29-
jobs:
30-
generate:
31-
runs-on: ubuntu-latest
32-
steps:
33-
- name: Check out repository code
34-
uses: actions/checkout@v2
35-
- name: run npm
36-
uses: actions/setup-node@v2
37-
with:
38-
node-version: "14"
39-
- run: npm install
40-
- name: generate users
41-
env:
42-
secret: ${{secrets.secret}
43-
run: npm run generate
44-
- name: Commit static
45-
run: |
46-
git config --global user.name 'robot'
47-
git commit -am "feat: automate generate users"
48-
git push

Diff for: config/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ raoshuang
282282
Ben-Lee95
283283
YanFaFa
284284
mm12344
285-
a-enll1
285+
a-enll
286286
breadfruit
287287
prince805962788
288288
shmilywh

0 commit comments

Comments
 (0)