Skip to content

Update build.yaml

Update build.yaml #35

Workflow file for this run

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