ci: retry install three times (#3924)

This commit is contained in:
Alex Yang
2023-08-23 13:22:04 -05:00
committed by GitHub
parent 834771878e
commit 4a003878e2
4 changed files with 14 additions and 24 deletions

View File

@@ -39,20 +39,12 @@ runs:
run: yarn config set nmMode hardlinks-local
- name: yarn install
if: ${{ inputs.package-install == 'true' }}
continue-on-error: true
shell: bash
run: yarn install ${{ inputs.extra-flags }}
env:
HUSKY: '0'
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
SENTRYCLI_SKIP_DOWNLOAD: '1'
- name: yarn install (try again)
if: ${{ steps.install.outcome == 'failure' }}
shell: bash
run: yarn install ${{ inputs.extra-flags }}
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
retry_on: timeout
command: yarn install ${{ inputs.extra-flags }}
env:
HUSKY: '0'
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'