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