From 40a8f01dd84f7df6f339dcfcabc3b1d67546ae96 Mon Sep 17 00:00:00 2001 From: Tiffany Yeung Date: Thu, 9 Jan 2025 11:26:26 -0800 Subject: [PATCH] fix: upgrade github actions/cache to v4.2.0 deprecation notice for v4.1.2 and below https://github.com/actions/cache/discussions/1510 --- ...eusable-build-system-test-react-native.yml | 4 ++-- .../workflows/reusable-build-system-test.yml | 4 ++-- .github/workflows/reusable-e2e.yml | 20 +++++++++---------- .github/workflows/reusable-setup-cache.yml | 10 +++++----- .github/workflows/reusable-unit.yml | 6 +++--- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/reusable-build-system-test-react-native.yml b/.github/workflows/reusable-build-system-test-react-native.yml index b66ca8b73e2..b73de493717 100644 --- a/.github/workflows/reusable-build-system-test-react-native.yml +++ b/.github/workflows/reusable-build-system-test-react-native.yml @@ -134,7 +134,7 @@ jobs: - name: Restore CocoaPods cache if: ${{ matrix.platform == 'ios' }} id: restore-cocoapods-cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 with: path: ./examples/react-native/ios/Pods key: ${{ runner.os }}-cocoapods @@ -143,7 +143,7 @@ jobs: SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 - name: Restore node_modules cache if: ${{ matrix.platform == 'ios' }} - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 id: restore-cache with: path: | diff --git a/.github/workflows/reusable-build-system-test.yml b/.github/workflows/reusable-build-system-test.yml index b0e498b155b..c299985bc21 100644 --- a/.github/workflows/reusable-build-system-test.yml +++ b/.github/workflows/reusable-build-system-test.yml @@ -125,7 +125,7 @@ jobs: - name: Delete AWS Profile run: rm -rf ~/.aws - name: Restore cypress runner from Cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 id: restore-cypress-cache with: path: ~/.cache/Cypress @@ -148,7 +148,7 @@ jobs: # step, so we go ahead and update the cache entry. - name: Cache cypress runner if: steps.restore-cypress-cache.outputs.cache-hit != 'true' - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 with: path: ~/.cache/Cypress key: ${{ runner.os }}-canary-cypress-${{ hashFiles('build-system-tests/e2e/yarn.lock') }} diff --git a/.github/workflows/reusable-e2e.yml b/.github/workflows/reusable-e2e.yml index 492332d2179..94ad70b7172 100644 --- a/.github/workflows/reusable-e2e.yml +++ b/.github/workflows/reusable-e2e.yml @@ -91,7 +91,7 @@ jobs: persist-credentials: false - name: Next.js Cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 with: path: ${{ github.workspace }}/.next/cache key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }} @@ -99,7 +99,7 @@ jobs: SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 - name: Setup Node.js 20 - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 with: node-version: 20 cache: 'yarn' @@ -107,7 +107,7 @@ jobs: SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2 - name: Restore cypress runner Cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 id: restore-cypress-cache with: path: ~/.cache/Cypress @@ -116,7 +116,7 @@ jobs: SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 - name: Restore node_modules cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 id: restore-cache with: path: | @@ -127,7 +127,7 @@ jobs: SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - name: Restore ui/dist cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 id: restore-ui-cache with: path: ./packages/ui/dist @@ -135,7 +135,7 @@ jobs: - name: Restore ${{ matrix.package }}/dist cache id: restore-package-cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 with: path: ./packages/${{ matrix.package }}/dist key: ${{ runner.os }}-${{ matrix.package }}-${{ inputs.commit }} @@ -394,7 +394,7 @@ jobs: - name: Restore CocoaPods cache id: restore-cocoapods-cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 with: path: ./examples/react-native/ios/Pods key: ${{ runner.os }}-cocoapods-${{ inputs.commit }} @@ -652,7 +652,7 @@ jobs: SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2 - name: Restore cypress runner Cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 id: restore-cypress-cache with: path: ~/.cache/Cypress @@ -661,7 +661,7 @@ jobs: SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 - name: Restore Puppeteer runner cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 id: restore-puppeteer-cache with: path: ~/.cache/puppeteer @@ -670,7 +670,7 @@ jobs: SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 - name: Restore node_modules cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 id: restore-cache with: path: | diff --git a/.github/workflows/reusable-setup-cache.yml b/.github/workflows/reusable-setup-cache.yml index 11e49cf03e8..9cd2969b9be 100644 --- a/.github/workflows/reusable-setup-cache.yml +++ b/.github/workflows/reusable-setup-cache.yml @@ -30,7 +30,7 @@ jobs: env: SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2 - name: Restore cypress runner from Cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 id: restore-cypress-cache with: path: ~/.cache/Cypress @@ -38,7 +38,7 @@ jobs: env: SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 - name: Restore Puppeteer runner from Cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 id: restore-puppeteer-cache with: path: ~/.cache/puppeteer @@ -55,17 +55,17 @@ jobs: - name: Cache cypress runner # create new cypress cache entry only if cypress cache missed and we installed a new one. if: steps.restore-cypress-cache.outputs.cache-hit != 'true' - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 with: path: ~/.cache/Cypress key: ${{ runner.os }}-cypress-${{ hashFiles('yarn.lock') }} - name: Cache packages/ui/dist - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 with: path: ./packages/ui/dist key: ${{ runner.os }}-ui-${{ inputs.commit }} - name: Cache node_modules - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 with: path: | ./node_modules diff --git a/.github/workflows/reusable-unit.yml b/.github/workflows/reusable-unit.yml index 6d767d6f0e8..241f38808c2 100644 --- a/.github/workflows/reusable-unit.yml +++ b/.github/workflows/reusable-unit.yml @@ -54,7 +54,7 @@ jobs: SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2 - name: Restore node_modules cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 id: restore-cache with: path: | @@ -65,7 +65,7 @@ jobs: SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - name: Restore ui/dist cache - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 id: restore-ui-cache with: path: ./packages/ui/dist @@ -154,7 +154,7 @@ jobs: run: yarn ${{ matrix.package }} size - name: Cache ${{ matrix.package }}/dist - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 https://github.com/actions/cache/commit/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57 with: path: ./packages/${{ matrix.package }}/dist key: ${{ runner.os }}-${{ matrix.package }}-${{ inputs.commit }}