Update build.yaml #35
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: Do Not Merge | |
on: | |
# Check label at every push in a feature branch | |
push: | |
branches-ignore: | |
- main | |
# Check label during the lifetime of a pull request | |
pull_request: | |
types: [synchronize, opened, reopened, labeled, unlabeled] | |
jobs: | |
do-not-merge: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Fail if PR is labeled with do not merge | |
if: contains(github.event.pull_request.labels.*.name, 'do-not-merge') | |
run: | | |
echo "This PR can't be merged, due to the 'do-not-merge' label." | |
exit 1 |