Skip to content

Commit 3514d57

Browse files
committed
Fix jq expression
1 parent d06cc91 commit 3514d57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/wgutils-automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
# Wait for checks to pass
3535
gh pr checks ${{ github.event.pull_request.number }} --fail-fast --watch --required 2>&1 || true
3636
# Now get the result in JSON
37-
CHECKS_OUTPUT="$(gh pr checks ${{ github.event.pull_request.number }} --required --json bucket --jq '.state' 2>&1 || true)"
37+
CHECKS_OUTPUT="$(gh pr checks ${{ github.event.pull_request.number }} --required --json bucket --jq 'map(.bucket == "pass") | all' 2>&1 || true)"
3838
3939
if [[ "$CHECKS_OUTPUT" == "pass" ]]; then
4040
echo "$CHECKS_OUTPUT"

0 commit comments

Comments
 (0)