diff --git a/.github/workflows/check_pr_branch.yml b/.github/workflows/check_pr_branch.yml index a4676479a3..0ec56975e8 100644 --- a/.github/workflows/check_pr_branch.yml +++ b/.github/workflows/check_pr_branch.yml @@ -7,7 +7,7 @@ jobs: steps: - name: PRs should not target main run: | - if [[ "${{ github.event.pull_request_target.ref }}" == "main" ]]; then + if [[ "${{ github.event.pull_request_target }}" == "main" ]]; then echo "Pull requests must not be made against main. Please target development instead." exit 1 fi