Skip to content

Commit ef5caff

Browse files
authored
Fail JQ if empty.
1 parent 3fb921d commit ef5caff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/site-runner.test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ jobs:
7373
JOB_NAME: ${{ github.job }}
7474

7575
run: |
76-
gh api /repos/$REPO/actions/runs/$RUN_ID/attempts/$ATTEMPT/jobs \
77-
-q ".jobs[] | select(.name != \"$JOB_NAME\") | select(.status != \"completed\") | .status"
76+
wait-for gh api /repos/$REPO/actions/runs/$RUN_ID/attempts/$ATTEMPT/jobs \
77+
| jq -e ".jobs[] | select(.name != \"$JOB_NAME\") | select(.status != \"completed\") | .status"
7878
7979
create-site:
8080
name: Create Preview Site

0 commit comments

Comments
 (0)