From fea3158792310c02e51696ff986db5bbf8376631 Mon Sep 17 00:00:00 2001 From: Ian Hou <45278651+iankhou@users.noreply.github.com> Date: Tue, 30 Sep 2025 15:03:36 -0400 Subject: [PATCH] fix: check_api_changes often fails on network error --- .github/workflows/health_checks.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/health_checks.yml b/.github/workflows/health_checks.yml index 78e1256dc5..31bf85b363 100644 --- a/.github/workflows/health_checks.yml +++ b/.github/workflows/health_checks.yml @@ -267,10 +267,15 @@ jobs: with: path: base-branch-content ref: ${{ github.event.pull_request.base.sha }} - - name: Check API changes - run: | - mkdir api-validation-projects - npx tsx scripts/check_api_changes.ts base-branch-content api-validation-projects + - name: Check API changes with retry + uses: nick-fields/retry@v3 + with: + timeout_minutes: 20 + max_attempts: 3 + retry_wait_seconds: 30 + command: | + mkdir -p api-validation-projects + npx tsx scripts/check_api_changes.ts base-branch-content api-validation-projects handle_dependabot_version_update: if: github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' runs-on: ubuntu-latest