Skip to content

Commit fea3158

Browse files
committed
fix: check_api_changes often fails on network error
1 parent 955ff71 commit fea3158

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/health_checks.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,15 @@ jobs:
267267
with:
268268
path: base-branch-content
269269
ref: ${{ github.event.pull_request.base.sha }}
270-
- name: Check API changes
271-
run: |
272-
mkdir api-validation-projects
273-
npx tsx scripts/check_api_changes.ts base-branch-content api-validation-projects
270+
- name: Check API changes with retry
271+
uses: nick-fields/retry@v3
272+
with:
273+
timeout_minutes: 20
274+
max_attempts: 3
275+
retry_wait_seconds: 30
276+
command: |
277+
mkdir -p api-validation-projects
278+
npx tsx scripts/check_api_changes.ts base-branch-content api-validation-projects
274279
handle_dependabot_version_update:
275280
if: github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]'
276281
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)