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:
jordanthejet 2026-03-07 17:45:50 -05:00
parent b59e3ae6d1
commit bb7314bc37

View File

@ -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: