From c16442ac29e89f20a77ae32500a217db0241d4b8 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Tue, 30 Mar 2021 18:24:44 +0200 Subject: [PATCH] Add a failing check on PRs not targeting devel Signed-off-by: Stephen Kitt --- .github/workflows/branch.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/branch.yml diff --git a/.github/workflows/branch.yml b/.github/workflows/branch.yml new file mode 100644 index 0000000..c08bc1c --- /dev/null +++ b/.github/workflows/branch.yml @@ -0,0 +1,14 @@ +--- +name: Branch Checks + +on: + pull_request: + +jobs: + target_devel: + name: PR targets devel + runs-on: ubuntu-latest + steps: + - name: Check that the PR targets devel + if: ${{ github.base_ref != 'devel' }} + run: exit 1