From 78d0e10a99676c92650a5248917207e7304f5c1b Mon Sep 17 00:00:00 2001 From: Christopher Allford <6451942+ObliviousHarmony@users.noreply.github.com> Date: Fri, 18 Mar 2022 13:13:49 -0700 Subject: [PATCH] Add workflow to block merges to main With the migration of the feature plugin into the `woocommerce/woocommerce` repository, we're going to use this workflow to block content from being merged into `main`. --- .github/workflows/block-merge-to-main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/block-merge-to-main.yml diff --git a/.github/workflows/block-merge-to-main.yml b/.github/workflows/block-merge-to-main.yml new file mode 100644 index 00000000000..0f12831a3bc --- /dev/null +++ b/.github/workflows/block-merge-to-main.yml @@ -0,0 +1,10 @@ +name: 'Block Merge To main' +on: [ pull_request ] + +jobs: + block_merge: + runs-on: ubuntu-latest + steps: + - name: Merge Blocked + if: github.event.pull_request.base.ref == 'main' + run: exit 1