From 540085c7b16dbe44a57e267655d7307eda8d514b Mon Sep 17 00:00:00 2001 From: Adrian Castro <22133246+castdrian@users.noreply.github.com> Date: Sat, 23 Mar 2024 17:01:06 +0100 Subject: [PATCH] feat: proper pod cache keys --- .github/workflows/build-mobile-comment.yml | 6 +----- .github/workflows/build-mobile.yml | 6 +----- .github/workflows/release-mobile.yml | 6 +----- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-mobile-comment.yml b/.github/workflows/build-mobile-comment.yml index 1145da3..5edc869 100644 --- a/.github/workflows/build-mobile-comment.yml +++ b/.github/workflows/build-mobile-comment.yml @@ -101,15 +101,11 @@ jobs: - name: Install dependencies run: pnpm install - - name: Generate Podfile.lock hash - id: podfile_hash - run: echo "PODFILE_HASH=$(shasum apps/expo/ios/Podfile.lock | awk '{ print $1 }')" >> $GITHUB_ENV - - name: Cache Pods uses: actions/cache@v4 with: path: apps/expo/ios/Pods - key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }} + key: ${{ runner.os }}-pods-${{ hashFiles('apps/expo/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pods- diff --git a/.github/workflows/build-mobile.yml b/.github/workflows/build-mobile.yml index 93f9669..32b2a5a 100644 --- a/.github/workflows/build-mobile.yml +++ b/.github/workflows/build-mobile.yml @@ -92,15 +92,11 @@ jobs: - name: Install dependencies run: pnpm install - - name: Generate Podfile.lock hash - id: podfile_hash - run: echo "PODFILE_HASH=$(shasum apps/expo/ios/Podfile.lock | awk '{ print $1 }')" >> $GITHUB_ENV - - name: Cache Pods uses: actions/cache@v4 with: path: apps/expo/ios/Pods - key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }} + key: ${{ runner.os }}-pods-${{ hashFiles('apps/expo/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pods- diff --git a/.github/workflows/release-mobile.yml b/.github/workflows/release-mobile.yml index f281eb1..6d5d959 100644 --- a/.github/workflows/release-mobile.yml +++ b/.github/workflows/release-mobile.yml @@ -120,15 +120,11 @@ jobs: - name: Install dependencies run: pnpm install - - name: Generate Podfile.lock hash - id: podfile_hash - run: echo "PODFILE_HASH=$(shasum apps/expo/ios/Podfile.lock | awk '{ print $1 }')" >> $GITHUB_ENV - - name: Cache Pods uses: actions/cache@v4 with: path: apps/expo/ios/Pods - key: ${{ runner.os }}-pods-${{ env.PODFILE_HASH }} + key: ${{ runner.os }}-pods-${{ hashFiles('apps/expo/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pods-