Skip to content

CLI updates

CLI updates #8616

Workflow file for this run

name: Label Check
on:
pull_request:
branches: ["*"]
types: [labeled, unlabeled, opened, synchronize, auto_merge_enabled]
jobs:
fail-by-label:
runs-on: ubuntu-latest
steps:
- name: Fail if PR is labeled as DoNotMerge
run: |
LABELS=$(echo '${{ toJson(github.event.pull_request.labels) }}' | jq -r '.[].name')
echo -e "This PR has the following Labels:\n$LABELS"
if [[ $LABELS == *"DoNotMerge"* ]]; then
echo "This PR is labeled as DoNotMerge!"
exit 1
fi