Updating main with changes added to Dev #47
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: 'Check branch names for pull requests' | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - edited | |
| jobs: | |
| check_branch_names: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check branch | |
| if: github.base_ref == 'main' && github.head_ref == 'main' | |
| run: | | |
| echo "ERROR: Pull requests to main must come from a topic branch, not main." | |
| exit 1 |