diff --git a/.github/workflows/autoupdate.yml b/.github/workflows/autoupdate.yml index ae71279..40b69e5 100644 --- a/.github/workflows/autoupdate.yml +++ b/.github/workflows/autoupdate.yml @@ -173,12 +173,13 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_URL: ${{ steps.pr_success.outputs.pr_url }} run: | - for i in $(seq 1 10); do - COUNT=$(gh pr checks "$PR_URL" 2>/dev/null | grep -c '\S' || true) + for i in $(seq 1 20); do + COUNT=$(gh pr checks "$PR_URL" 2>/dev/null | grep -cE 'https?://' || true) [ "$COUNT" -gt 0 ] && break sleep 30 done - gh pr checks "$PR_URL" --watch + gh pr checks "$PR_URL" --watch || true + gh pr checks "$PR_URL" 2>/dev/null | grep -qE '\s+fail\b' && { echo "checks failed"; exit 1; } gh pr merge "$PR_URL" --squash --delete-branch - name: Dispatch Claude to fix the failed autoupdate if: steps.pr_failure.outputs.pr_url != ''