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