chore: release v2.2.0-beta.7 #108
Workflow file for this run
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: PR target branch check | |
| on: | |
| pull_request: | |
| branches: [main] | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| check-target: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Enforce mainline PR policy | |
| env: | |
| HEAD_REF: ${{ github.head_ref }} | |
| run: | | |
| if [[ "$HEAD_REF" == release/* ]]; then | |
| echo "::error::Source branch '$HEAD_REF' matches deprecated release/* flow." | |
| echo "::error::Use topic branches from main (feat/*, fix/*, chore/*, hotfix/*) and target main." | |
| exit 1 | |
| fi | |
| echo "PR source branch: $HEAD_REF" | |
| echo "Mainline PR policy check passed." |