From 23e77ab3ee6f9ddb3ca4596c15c6dd7a302a45e4 Mon Sep 17 00:00:00 2001 From: Siarhei Dudko Date: Sat, 23 May 2026 12:28:18 +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 e5e9d19..a4cdd9e 100644 --- a/.github/workflows/autoupdate.yml +++ b/.github/workflows/autoupdate.yml @@ -172,12 +172,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 != ''