Skip to content

Commit

Permalink
ci: prevent merge of stacked PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah committed May 19, 2024
1 parent 57ad3bd commit d892f16
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/stacked-prs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Stacked PRs
on:
pull_request:
pull_request_target:

jobs:
prevent_merge_of_stacked_pr:
runs-on: ubuntu-latest
steps:
- name: Fail if base is not main
run: |
if [[ "${GITHUB_BASE_REF}" != "main" ]]; then
exit 1;
fi

0 comments on commit d892f16

Please sign in to comment.