Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Add workflow to block merges to main
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
ObliviousHarmony authored Mar 18, 2022
1 parent 4ed0fd6 commit 78d0e10
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/block-merge-to-main.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 78d0e10

Please sign in to comment.