We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c23d27a + 06ecd76 commit ac8248fCopy full SHA for ac8248f
1 file changed
.github/workflows/update-homebrew.yml
@@ -4,6 +4,11 @@ on:
4
release:
5
types: [published]
6
workflow_dispatch:
7
+ inputs:
8
+ version:
9
+ description: 'Release version (e.g. v1.5.4)'
10
+ required: true
11
+ type: string
12
13
permissions:
14
contents: read
@@ -19,7 +24,13 @@ jobs:
19
24
name: Get release info
20
25
id: release_info
21
26
run: |
22
- VERSION=${{ github.event.release.tag_name }}
27
+ # Use input version if running manually, otherwise use release event
28
+ if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
29
+ VERSION=${{ github.event.inputs.version }}
30
+ else
31
+ VERSION=${{ github.event.release.tag_name }}
32
+ fi
33
+
23
34
echo "version=$VERSION" >> $GITHUB_OUTPUT
35
36
# Get release assets URLs
0 commit comments