Skip to content

Commit e516398

Browse files
committed
Fix hashFiles glob patterns in workflow
Changes: - Split invalid '**/*.gradle*' into explicit '**/*.gradle' and '**/*.gradle.kts' - Changed 'gradle.properties' to '**/gradle.properties' to catch all instances - Fixed buildSrc path from '**/buildSrc/**/*.kt' to 'apps/buildSrc/src/**/*.kt' All patterns now match actual files in the repository: - 24 .gradle files - 8 .gradle.kts files - 2 gradle-wrapper.properties files - 3 gradle.properties files - 4 Kotlin files in apps/buildSrc/src/ This resolves the hashFiles parsing error in GitHub Actions.
1 parent e362f7c commit e516398

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', 'gradle.properties', '**/buildSrc/**') }}
102+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', '**/gradle-wrapper.properties', '**/gradle.properties', 'apps/buildSrc/src/**/*.kt') }}
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', 'gradle.properties', '**/buildSrc/**') }}
261+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', '**/gradle-wrapper.properties', '**/gradle.properties', 'apps/buildSrc/src/**/*.kt') }}
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', 'gradle.properties', '**/buildSrc/**') }}
352+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', '**/gradle-wrapper.properties', '**/gradle.properties', 'apps/buildSrc/src/**/*.kt') }}
353353
restore-keys: |
354354
${{ runner.os }}-gradle-
355355

0 commit comments

Comments
 (0)