From 477ab2c545655d2d6ab966a1a18bd26480240f23 Mon Sep 17 00:00:00 2001 From: Max Katz Date: Sun, 15 Oct 2023 20:34:04 -0400 Subject: [PATCH] Revert to original approach --- .github/workflows/check_pr_branch.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/check_pr_branch.yml b/.github/workflows/check_pr_branch.yml index 1fba3af7d7..5d12a9303d 100644 --- a/.github/workflows/check_pr_branch.yml +++ b/.github/workflows/check_pr_branch.yml @@ -1,15 +1,13 @@ name: check PR branch -on: [pull_request] +on: + pull_request: + branches: + - main + jobs: check-PR-branch: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJson(github) }} - run: echo "$GITHUB_CONTEXT" + - name: PRs should not target main + run: exit 1