Skip to content

Commit

Permalink
Cannot use --watch with --json
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Dec 19, 2024
1 parent c34a798 commit 466322c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/wgutils-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:
sleep 15
# Wait for checks to pass
CHECKS_OUTPUT="$(gh pr checks ${{ github.event.pull_request.number }} --fail-fast --watch --required --json bucket --jq '.state' 2>&1 || true)"
gh pr checks ${{ github.event.pull_request.number }} --fail-fast --watch --required 2>&1 || true
# Now get the result in JSON
CHECKS_OUTPUT="$(gh pr checks ${{ github.event.pull_request.number }} --fail-fast --required --json bucket --jq '.state' 2>&1 || true)"
if [[ "$CHECKS_OUTPUT" == "pass" ]]; then
echo "$CHECKS_OUTPUT"
Expand Down

0 comments on commit 466322c

Please sign in to comment.