diff --git a/.github/workflows/platformDeploy.yml b/.github/workflows/platformDeploy.yml index 48c8e38fe3e11..a5d203f86c474 100644 --- a/.github/workflows/platformDeploy.yml +++ b/.github/workflows/platformDeploy.yml @@ -158,13 +158,14 @@ jobs: bundler-cache: true - uses: actions/cache@v3 + id: cache-pods + if: github.run_attempt == '1' with: path: ios/Pods key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} - restore-keys: | - ${{ runner.os }}-pods- - name: Install cocoapods + if: github.run_attempt != '1' || steps.cache-pods.outputs.cache-hit != 'true' uses: nick-invision/retry@0711ba3d7808574133d713a0d92d2941be03a350 with: timeout_minutes: 10 diff --git a/.github/workflows/testBuild.yml b/.github/workflows/testBuild.yml index 9b4bf6d020d6d..e79b2d48cd8d5 100644 --- a/.github/workflows/testBuild.yml +++ b/.github/workflows/testBuild.yml @@ -141,13 +141,14 @@ jobs: bundler-cache: true - uses: actions/cache@v3 + id: cache-pods + if: github.run_attempt == '1' with: path: ios/Pods key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} - restore-keys: | - ${{ runner.os }}-pods- - name: Install cocoapods + if: github.run_attempt != '1' || steps.cache-pods.outputs.cache-hit != 'true' uses: nick-invision/retry@0711ba3d7808574133d713a0d92d2941be03a350 with: timeout_minutes: 10