Write GKE metrics with the apprioate labels #1476
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
name: "Check labels" | |
on: | |
pull_request: | |
branches: ["master"] | |
types: | |
- opened | |
- synchronize | |
- labeled | |
- unlabeled | |
merge_group: | |
branches: ["master"] | |
types: [checks_requested] | |
jobs: | |
fail-by-label: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fail if PR is labeled as "do not merge" | |
if: contains(github.event.pull_request.labels.*.name, 'do not merge') | |
run: | | |
echo "This PR is labeled as do not merge!" | |
exit 1 |