Skip to content

Commit 11484e9

Browse files
committed
Simplify hashFiles to single pattern for gradle-wrapper.properties
Use only gradle-wrapper.properties for cache key to avoid hashFiles errors. This is the most critical file for Gradle cache invalidation as it determines the Gradle version. Testing with minimal pattern to isolate the hashFiles issue.
1 parent 83c6283 commit 11484e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pr-pipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
path: |
100100
~/.gradle/caches
101101
~/.gradle/wrapper
102-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
102+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
103103
restore-keys: |
104104
${{ runner.os }}-gradle-
105105
@@ -258,7 +258,7 @@ jobs:
258258
path: |
259259
~/.gradle/caches
260260
~/.gradle/wrapper
261-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
261+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
262262
restore-keys: |
263263
${{ runner.os }}-gradle-
264264
@@ -349,7 +349,7 @@ jobs:
349349
path: |
350350
~/.gradle/caches
351351
~/.gradle/wrapper
352-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
352+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
353353
restore-keys: |
354354
${{ runner.os }}-gradle-
355355

0 commit comments

Comments
 (0)