Final Dev to main #40
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 Dev Only Merge | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| check-dev-source: | |
| name: Enforce Dev Only Merge | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Block if source branch is not dev | |
| run: | | |
| echo "Source branch: ${{ github.head_ref }}" | |
| if [ "${{ github.head_ref }}" != "dev" ]; then | |
| echo "❌ Only merges from 'dev' to 'main' are allowed." | |
| exit 1 | |
| fi | |
| echo "✅ Merge is from 'dev', proceeding." |