Release 0.1.3 #10
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: Enforce Main PR Source | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| enforce-main-source: | |
| name: Enforce main <- dev only | |
| runs-on: ubuntu-latest | |
| env: | |
| BASE_REF: ${{ github.base_ref }} | |
| HEAD_REF: ${{ github.head_ref }} | |
| steps: | |
| - name: Validate pull request source branch | |
| run: | | |
| echo "Base branch: $BASE_REF" | |
| echo "Head branch: $HEAD_REF" | |
| if [ "$BASE_REF" = "main" ] && [ "$HEAD_REF" != "dev" ]; then | |
| echo "Only pull requests from 'dev' into 'main' are allowed." | |
| echo "Required flow: feature/* -> dev -> main." | |
| exit 1 | |
| fi |