add substitution #728
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
# SPDX-FileCopyrightText: 2022 Contributors to the Power Grid Model project <[email protected]> | |
# | |
# SPDX-License-Identifier: MPL-2.0 | |
name: Check Blocking Labels | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
types: | |
- opened | |
- synchronize | |
- labeled | |
- unlabeled | |
jobs: | |
check-blocking-labels: | |
runs-on: ubuntu-latest | |
steps: | |
- name: do-not-merge | |
if: contains(github.event.pull_request.labels.*.name, 'do-not-merge') | |
run: | | |
echo "This pull request should not be merged (do-not-merge)" | |
exit 1 | |
- name: merge-target-first | |
if: contains(github.event.pull_request.labels.*.name, 'merge-target-first') | |
run: | | |
echo "The target branch of this PR should be merged first (merge-target-first)" | |
exit 2 | |
- name: needs-unit-tests | |
if: contains(github.event.pull_request.labels.*.name, 'needs-unit-tests') | |
run: | | |
echo "This pull request needs (more) unit tests before it may be merged (needs-unit-tests)" | |
exit 3 |