From d01a71c837a9a556c50e6ae76651c3fd794fd82b Mon Sep 17 00:00:00 2001 From: Max Katz Date: Sun, 15 Oct 2023 18:37:53 -0400 Subject: [PATCH] Add CI test that fails if a PR is issued to main --- .github/workflows/check_pr_branch.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/check_pr_branch.yml diff --git a/.github/workflows/check_pr_branch.yml b/.github/workflows/check_pr_branch.yml new file mode 100644 index 0000000000..5d12a9303d --- /dev/null +++ b/.github/workflows/check_pr_branch.yml @@ -0,0 +1,13 @@ +name: check PR branch + +on: + pull_request: + branches: + - main + +jobs: + check-PR-branch: + runs-on: ubuntu-latest + steps: + - name: PRs should not target main + run: exit 1