Skip to content

Commit a26fedd

Browse files
committed
👷 execute two workflows by order
1 parent 97fb359 commit a26fedd

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Use Node.js ${{ matrix.node_version }}
1717
uses: actions/setup-node@v1
1818
with:
19-
node_version: ${{ matrix.node_version }}
19+
node-version: ${{ matrix.node_version }}
2020
- name: build
2121
run: |
2222
yarn install
@@ -28,3 +28,8 @@ jobs:
2828
git add .
2929
git commit -m ":robot: build automatically"
3030
git push
31+
- name: repository dispatch
32+
uses: peter-evans/repository-dispatch@v1
33+
with:
34+
token: ${{ secrets.GH_TOKEN }}
35+
event-type: build-event

.github/workflows/schedule.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Update gist
22
on:
3-
push:
4-
branches:
5-
- master
3+
repository_dispatch:
4+
types: [build-event]
65
schedule:
76
- cron: "0 0 * * *"
87
jobs:

0 commit comments

Comments
 (0)