fix(ci): add default-branch guard to beta release workflow_dispatch
Prevent manual beta releases from non-default branches by gating the version job on github.ref matching the default branch. Off-branch dispatches now fail closed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b59e3ae6d1
commit
bb7314bc37
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@ -20,6 +20,7 @@ env:
|
||||
|
||||
jobs:
|
||||
version:
|
||||
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
||||
name: Resolve Version
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user