Skip to content

Commit beaa9a8

Browse files
stephenleoclaude
andcommitted
Guard release job against non-tag workflow_dispatch runs
Add `if: startsWith(github.ref, 'refs/tags/')` to the release job so workflow_dispatch triggers can test build without failing on the gh-release action which requires a tag ref. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 59cc190 commit beaa9a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464

6565
release:
6666
name: Publish GitHub Release
67+
if: startsWith(github.ref, 'refs/tags/')
6768
needs: build
6869
runs-on: ubuntu-latest
6970
permissions:

0 commit comments

Comments
 (0)