Skip to content

Commit bda8840

Browse files
committed
ci: store the hash of Package.resolved in the cache key of swift-format in swift format check GitHub workflow
1 parent 799a8e5 commit bda8840

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/swift-format-check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
uses: actions/cache@v4
3838
with:
3939
path: ~/.cache/swift-format
40-
key: swift-format-${{ runner.os }}-${{ env.SWIFT_FORMAT_VERSION }}
40+
key: swift-format-${{ runner.os }}-${{ env.SWIFT_FORMAT_VERSION }}-${{ hashFiles('**/Package.resolved') }}
41+
restore-keys: |
42+
swift-format-${{ runner.os }}-${{ env.SWIFT_FORMAT_VERSION }}-
4143
4244
- name: 📦 Install Swift Format
4345
run: |

0 commit comments

Comments
 (0)