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`.
This commit is contained in:
Christopher Allford 2022-03-18 13:13:49 -07:00 committed by GitHub
parent 4bff4d1302
commit da6ad73d18
1 changed files with 10 additions and 0 deletions

View File

@ -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