Skip to content

Commit aaaed5e

Browse files
committed
fix the homebrew release trigger
1 parent 8204cc8 commit aaaed5e

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/homebrew.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
token: ${{secrets.HOMEBREW_GITHUB_TOKEN}}
1515
# Formula name, required
1616
formula: gitversion
17-
tag: 5.6.2
17+
tag: ${{ github.event.client_payload.ref }}

.github/workflows/release.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@ on:
44
types: [published]
55

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

0 commit comments

Comments
 (0)