Skip to content

Commit 3729be7

Browse files
authored
Merge branch 'main' into caching-tests-clean
Signed-off-by: Simon Marty <martysi@amazon.com>
2 parents b9aa52a + de875e6 commit 3729be7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/integration-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
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')
@@ -36,9 +36,9 @@ jobs:
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

0 commit comments

Comments
 (0)