Skip to content

Add CI test that fails if a PR is issued to main #4

Add CI test that fails if a PR is issued to main

Add CI test that fails if a PR is issued to main #4

Workflow file for this run

name: check PR branch
on: [pull_request]
jobs:
check-PR-branch:
runs-on: ubuntu-latest
steps:
- name: PRs should not target main
run: |
if [[ "${{ github.event.pull_request.base.ref }}" == "main" ]]; then
echo "Pull requests must not be made against main. Please target development instead."
exit 1
fi