Skip to content

Commit

Permalink
try to fix workflow failing even when fixing to the correct branch
Browse files Browse the repository at this point in the history
  • Loading branch information
rejas committed Sep 19, 2024
1 parent 843d811 commit 6142892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/enforce-pullrequest-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
name: "Enforce Pull-Request Rules"

on:
pull_request:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

jobs:
Expand All @@ -25,4 +25,4 @@ jobs:
echo "Please don't do this. Switch the branch to 'develop'."
exit 1
env:
BASE_BRANCH: ${{ github.base_ref }}
BASE_BRANCH: ${{ github.event.pull_request.base.ref }}

0 comments on commit 6142892

Please sign in to comment.