diff --git a/.github/actions/checkout-and-setup/action.yml b/.github/actions/checkout-and-setup/action.yml index d032b413..db7fbd20 100644 --- a/.github/actions/checkout-and-setup/action.yml +++ b/.github/actions/checkout-and-setup/action.yml @@ -74,10 +74,16 @@ runs: cache: ${{ ( inputs.is-high-risk-environment != 'true' && steps.download-node-modules.outputs.cache-hit != 'true' ) && 'yarn' || '' }} # If the node_modules cache was not found (or it's a high-risk environment), run the yarn install - - name: Install dependencies + - name: Install dependencies with retry if: ${{ steps.download-node-modules.outputs.cache-hit != 'true'}} - run: yarn --immutable - shell: bash + uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2 + with: + max_attempts: 2 + timeout_minutes: 15 + retry_wait_seconds: 30 + retry_on: error + command: yarn --immutable + shell: bash # For the 'prep-deps' job, save the node_modules cache - name: Cache workspace diff --git a/.github/workflows/changelog-check.yml b/.github/workflows/changelog-check.yml index 557edb21..93272e9f 100644 --- a/.github/workflows/changelog-check.yml +++ b/.github/workflows/changelog-check.yml @@ -77,11 +77,18 @@ jobs: cache-dependency-path: ./github-tools/yarn.lock cache: yarn - - name: Install dependencies + - name: Install dependencies with retry if: ${{ steps.label-check.outputs.skip_check != 'true' }} - run: yarn --immutable - shell: bash - working-directory: ./github-tools + uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2 + with: + max_attempts: 2 + timeout_minutes: 15 + retry_wait_seconds: 30 + retry_on: error + shell: bash + command: | + cd ./github-tools + yarn --immutable - name: Check Changelog if: ${{ steps.label-check.outputs.skip_check != 'true' }} diff --git a/.github/workflows/flaky-test-report.yml b/.github/workflows/flaky-test-report.yml index 1f5c298a..9bd25375 100644 --- a/.github/workflows/flaky-test-report.yml +++ b/.github/workflows/flaky-test-report.yml @@ -40,9 +40,16 @@ jobs: run: corepack enable working-directory: ./github-tools - - name: Install dependencies - working-directory: ./github-tools - run: yarn --immutable + - name: Install dependencies with retry + uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2 + with: + max_attempts: 2 + timeout_minutes: 15 + retry_wait_seconds: 30 + retry_on: error + command: | + cd ./github-tools + yarn --immutable - name: Run flaky test report script env: diff --git a/.github/workflows/post-merge-validation.yml b/.github/workflows/post-merge-validation.yml index 750988c4..d42c9e8c 100644 --- a/.github/workflows/post-merge-validation.yml +++ b/.github/workflows/post-merge-validation.yml @@ -50,9 +50,16 @@ jobs: run: corepack enable working-directory: ./github-tools - - name: Install dependencies - working-directory: ./github-tools - run: yarn --immutable + - name: Install dependencies with retry + uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2 + with: + max_attempts: 2 + timeout_minutes: 15 + retry_wait_seconds: 30 + retry_on: error + command: | + cd ./github-tools + yarn --immutable - name: Run post-merge-validation script working-directory: ./github-tools diff --git a/.github/workflows/publish-slack-release-testing-status.yml b/.github/workflows/publish-slack-release-testing-status.yml index c1d29385..3919bd1b 100644 --- a/.github/workflows/publish-slack-release-testing-status.yml +++ b/.github/workflows/publish-slack-release-testing-status.yml @@ -49,10 +49,17 @@ jobs: shell: bash working-directory: ./github-tools - - name: Install dependencies - run: yarn --immutable - shell: bash - working-directory: ./github-tools + - name: Install dependencies with retry + uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2 + with: + max_attempts: 2 + timeout_minutes: 15 + retry_wait_seconds: 30 + retry_on: error + shell: bash + command: | + cd ./github-tools + yarn --immutable # Step 4: Run Script - name: Publish Slack Release Testing Status