DO NOT MERGE!: This PR only shows rework and differences from v1 (RDT-930) #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Block PR Merge If BLOCK-MERGE Label Exists | |
on: | |
pull_request: | |
types: [labeled, unlabeled, synchronize, opened, reopened] | |
jobs: | |
fail-by-label: | |
if: contains(join(github.event.pull_request.labels.*.name, ' '), 'Block Merge') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fail if PR is labeled "Block Merge" | |
run: |- | |
echo "❌ This PR is labeled as 'Block Merge' and cannot be merged." | |
exit 1 |