Skip to content

Commit cfff762

Browse files
committed
(build) use octokit/request-action for triggering release
1 parent e1a2f0c commit cfff762

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ on:
55

66
jobs:
77
callBuildFlow:
8-
name: Call Build flow
8+
name: Trigger Build flow
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Call Build flow
13-
uses: peter-evans/repository-dispatch@v1
12+
- uses: octokit/[email protected]
13+
name: "Trigger Build flow"
1414
with:
15-
event-type: release
16-
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
15+
route: POST /repos/:repository/dispatches
16+
repository: ${{ github.repository }}
17+
mediaType: '{"previews": ["everest"]}'
18+
event_type: release
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)