add a check on the job_info runtime parameters to the CI #19
Workflow file for this run
This file contains 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 PR branch | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- edited | |
jobs: | |
check-PR-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: PRs should not target main | |
run: | | |
if [[ "${{ github.base_ref }}" == "main" ]]; then | |
echo 'Pull requests must not be made against main. Please target development instead.' | |
exit 1 | |
fi |