Skip to content

Commit

Permalink
ci: add retries to bundle size PR comment job (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 authored Mar 21, 2024
1 parent f32aaa9 commit 0aa6cca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pull-request-completed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}',
Expand Down

0 comments on commit 0aa6cca

Please sign in to comment.