Skip to content

Commit

Permalink
Revert to original approach
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpkatz committed Oct 16, 2023
1 parent 94b986c commit 477ab2c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/check_pr_branch.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 477ab2c

Please sign in to comment.