Skip to content

Commit ac8248f

Browse files
authored
Merge pull request #77 from latitudesh/chore/improve-workflow-dispatch
chore: include manual steps
2 parents c23d27a + 06ecd76 commit ac8248f

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/update-homebrew.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
release:
55
types: [published]
66
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: 'Release version (e.g. v1.5.4)'
10+
required: true
11+
type: string
712

813
permissions:
914
contents: read
@@ -19,7 +24,13 @@ jobs:
1924
name: Get release info
2025
id: release_info
2126
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+
2334
echo "version=$VERSION" >> $GITHUB_OUTPUT
2435
2536
# Get release assets URLs

0 commit comments

Comments
 (0)