Skip to content

Commit

Permalink
👷 execute two workflows by order
Browse files Browse the repository at this point in the history
  • Loading branch information
maxam2017 committed Apr 1, 2021
1 parent 97fb359 commit a26fedd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node_version: ${{ matrix.node_version }}
node-version: ${{ matrix.node_version }}
- name: build
run: |
yarn install
Expand All @@ -28,3 +28,8 @@ jobs:
git add .
git commit -m ":robot: build automatically"
git push
- name: repository dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.GH_TOKEN }}
event-type: build-event
5 changes: 2 additions & 3 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Update gist
on:
push:
branches:
- master
repository_dispatch:
types: [build-event]
schedule:
- cron: "0 0 * * *"
jobs:
Expand Down

0 comments on commit a26fedd

Please sign in to comment.