Skip to content

Commit 98038ed

Browse files
committed
Sync Homebrew tap on release publish
1 parent 65f91f7 commit 98038ed

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/update-homebrew-tap.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: update-homebrew-tap
22

33
on:
4-
push:
5-
tags:
6-
- "v*"
4+
release:
5+
types:
6+
- published
77
workflow_dispatch:
88
inputs:
99
version:
@@ -26,11 +26,13 @@ jobs:
2626

2727
- name: Resolve Version
2828
id: version
29+
env:
30+
RELEASE_TAG: ${{ github.event.release.tag_name }}
2931
run: |
3032
if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
3133
echo "value=${{ github.event.inputs.version }}" >> "$GITHUB_OUTPUT"
3234
else
33-
echo "value=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
35+
echo "value=${RELEASE_TAG#v}" >> "$GITHUB_OUTPUT"
3436
fi
3537
3638
- name: Resolve SHA256

0 commit comments

Comments
 (0)