File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1616
1717 # Run if:
1818 # 1. Manual trigger or push to main, OR
19- # 2 . PR with "safe-to- test" label added
19+ # 3 . PR with "safe to test" label
2020 if : |
2121 github.event_name != 'pull_request_target' ||
2222 contains(github.event.pull_request.labels.*.name, 'safe-to-test')
3636 - name : Remove label
3737 run : |
3838 echo "Removing label '$LABEL_NAME' from PR #$PR_NUMBER on repo $REPO"
39- gh_status=$(gh api "repos/$REPO/issues/$PR_NUMBER/labels/$LABEL_NAME" -X DELETE | jq ".status" --raw-output)
39+ gh_status=$(gh api "repos/$REPO/issues/$PR_NUMBER/labels/$LABEL_NAME" -X DELETE | jq ".status // empty " --raw-output)
4040 case $gh_status in
41- 200 ) echo "Label removed" ;;
41+ "" ) echo "Label removed" ;;
4242 404) echo "Label not found — ignoring" ;;
4343 *) echo "unexpected HTTP $gh_status" && exit 1 ;;
4444 esac
You can’t perform that action at this time.
0 commit comments