next into main #16
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: Branch Validation | |
| on: | |
| pull_request_target: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - edited | |
| branches: | |
| - main | |
| jobs: | |
| branch-validation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check Source Branch | |
| run: | | |
| if [ "${{ github.head_ref }}" != "next" ]; then | |
| echo "Merge requests to main branch are only allowed from the next branch." | |
| exit 1 | |
| fi |