Skip to content

Commit 6de8edb

Browse files
ci: add workflow_dispatch trigger to homebrew update workflow
Allows manually triggering the cask update when the release event doesn't fire (e.g. when publishing a draft via the GitHub API). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6afcad6 commit 6de8edb

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/update_homebrew.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Update Homebrew Cask
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: "Version to release (e.g. 1.1.0)"
10+
required: true
611

712
jobs:
813
update-cask:
@@ -12,7 +17,11 @@ jobs:
1217
- name: Extract version
1318
id: version
1419
run: |
15-
VERSION="${GITHUB_REF_NAME#v}"
20+
if [ -n "${{ inputs.version }}" ]; then
21+
VERSION="${{ inputs.version }}"
22+
else
23+
VERSION="${GITHUB_REF_NAME#v}"
24+
fi
1625
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
1726
echo "dmg_name=WolfWave-${VERSION}.dmg" >> "$GITHUB_OUTPUT"
1827
echo "Version: $VERSION"

0 commit comments

Comments
 (0)