ci(release): establish beta promotion gate #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Require beta promotion | |
| on: | |
| pull_request: | |
| branches: [master] | |
| permissions: | |
| contents: read | |
| jobs: | |
| promote-from-beta: | |
| name: promote-from-beta | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Verify promotion source | |
| env: | |
| HEAD_REF: ${{ github.head_ref }} | |
| run: | | |
| if [[ "$HEAD_REF" != "beta" ]]; then | |
| echo "::error::Changes to master must be promoted from the beta branch." | |
| exit 1 | |
| fi | |
| echo "Verified beta -> master promotion." |