We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d06cc91 commit 3514d57Copy full SHA for 3514d57
.github/workflows/wgutils-automerge.yml
@@ -34,7 +34,7 @@ jobs:
34
# Wait for checks to pass
35
gh pr checks ${{ github.event.pull_request.number }} --fail-fast --watch --required 2>&1 || true
36
# 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)"
+ CHECKS_OUTPUT="$(gh pr checks ${{ github.event.pull_request.number }} --required --json bucket --jq 'map(.bucket == "pass") | all' 2>&1 || true)"
38
39
if [[ "$CHECKS_OUTPUT" == "pass" ]]; then
40
echo "$CHECKS_OUTPUT"
0 commit comments