Skip to content

ci: prevent merge of stacked PRs #6

ci: prevent merge of stacked PRs

ci: prevent merge of stacked PRs #6

Workflow file for this run

name: Stacked PRs
on:
pull_request:
types: [opened, edited, synchronize, reopened]
pull_request_target:
types: [opened, edited, synchronize, reopened]
jobs:
prevent_merge_of_stacked_pr:
runs-on: ubuntu-latest
steps:
- name: Check that base is "main"
run: |
echo "${GITHUB_BASE_REF}"
if [[ "${GITHUB_BASE_REF}" != "main" ]]; then
exit 1;
fi