From 0aa6ccab00d72d6dea91ca40e39377b74c8386c2 Mon Sep 17 00:00:00 2001 From: David LJ Date: Thu, 21 Mar 2024 01:23:22 +0100 Subject: [PATCH] ci: add retries to bundle size PR comment job (#457) --- .github/workflows/pull-request-completed.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pull-request-completed.yml b/.github/workflows/pull-request-completed.yml index e5e653cc..0d4667e1 100644 --- a/.github/workflows/pull-request-completed.yml +++ b/.github/workflows/pull-request-completed.yml @@ -45,6 +45,11 @@ jobs: id: pr uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7 with: + retries: 3 + #👇 Default except 403, which is the rate limit sometimes raised + # https://github.com/davidlj95/ngx/actions/runs/8362399318/job/22892884496 + # https://github.com/octokit/plugin-retry.js/blob/v7.0.3/src/index.ts#L14 + retry-exempt-status-codes: 400,401,404,422,451 script: | const response = await github.rest.search.issuesAndPullRequests({ q: 'repo:${{ github.repository }} is:pr sha:${{ github.event.workflow_run.head_sha }}',