File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -67,14 +67,19 @@ jobs:
6767 uses : actions/cache@v4
6868 with :
6969 path : sample/ios/Pods
70- key : ${{ runner.os }}-pods-${{ hashFiles('sample/ios/Podfile.lock') }}
70+ key : ${{ runner.os }}-pods-${{ hashFiles('sample/ios/Podfile.lock') }}-${{ steps.setup-xcode.outputs.version }}
7171 restore-keys : |
7272 ${{ runner.os }}-pods-
7373
7474 - name : Install CocoaPods
75- if : steps.cocoapods-cache.outputs.cache-hit != 'true'
75+ if : steps.cocoapods-cache.outputs.cache-hit != 'true' || env.PODS_CACHE_INVALID == 'true'
7676 working-directory : sample/ios
77- run : bundle exec pod install
77+ run : |
78+ if [ "$PODS_CACHE_INVALID" == "true" ]; then
79+ echo "🧹 Cleaning invalid cache and reinstalling pods..."
80+ rm -rf Pods
81+ fi
82+ bundle exec pod install
7883
7984 - name : Create env.ts
8085 env :
You can’t perform that action at this time.
0 commit comments