From e8ce9870e0685530a25db0d5c3b8b1f4b0cdf840 Mon Sep 17 00:00:00 2001 From: Siarhei Dudko Date: Sat, 23 May 2026 12:31:01 +0400 Subject: [PATCH] fix(autoupdate): robust wait-for-checks logic before merge --- .github/workflows/autoupdate.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/autoupdate.yml b/.github/workflows/autoupdate.yml index 71b93c5b..7bdc6bf7 100644 --- a/.github/workflows/autoupdate.yml +++ b/.github/workflows/autoupdate.yml @@ -181,12 +181,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: Tag release commit and dispatch deploy if: steps.merge_pr.outcome == 'success' && steps.pkg.outputs.version != ''