ci: Run dev.yml, sterile.yml workflows on pull_request #99
Workflow file for this run
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
# Block Pull Request merge (by failing the check) if specific labels are set. | |
name: Mergeability | |
on: | |
pull_request: | |
types: [synchronize, opened, reopened, labeled, unlabeled] | |
jobs: | |
check-labels: | |
runs-on: ubuntu-latest | |
name: Check mergeability based on labels | |
steps: | |
- if: ${{ contains(github.event.*.labels.*.name, 'dont-merge') }} | |
name: Fail test due to 'dont-merge' label presence | |
run: exit 1 | |
- name: Allow merging | |
run: exit 0 |