Skip to content

Commit a9b7437

Browse files
committed
Improve cache key for cocoapods - include package.json and lockfile information
1 parent 78653e9 commit a9b7437

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/actions/install-cocoapods/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ runs:
2323
with:
2424
path: |
2525
**/ios/Pods
26-
key: ${{ runner.os }}-cocoapods-ruby-${{ inputs.ruby-version }}-${{ hashFiles('sample/ios/Podfile.lock', 'sample/Gemfile.lock') }}
26+
key: ${{ runner.os }}-cocoapods-ruby-${{ inputs.ruby-version }}-${{ hashFiles('sample/ios/Podfile.lock', 'sample/Gemfile.lock', 'package.json', 'sample/package.json', 'modules/@shopify/checkout-sheet-kit/package.json', 'yarn.lock') }}
2727
restore-keys: |
28+
${{ runner.os }}-cocoapods-ruby-${{ inputs.ruby-version }}-${{ hashFiles('sample/ios/Podfile.lock', 'sample/package.json', 'yarn.lock') }}
2829
${{ runner.os }}-cocoapods-ruby-${{ inputs.ruby-version }}-${{ hashFiles('sample/ios/Podfile.lock') }}
2930
${{ runner.os }}-cocoapods-ruby-${{ inputs.ruby-version }}-
3031
${{ runner.os }}-cocoapods-

0 commit comments

Comments
 (0)