Skip to content

Commit e362f7c

Browse files
committed
Fix hashFiles syntax error in pr-pipeline workflow
The hashFiles() function was incorrectly using multiple separate calls which caused parsing errors in GitHub Actions. Consolidated all glob patterns into a single hashFiles() call and simplified restore-keys. This fixes the build failures where the workflow would fail with: 'hashFiles('**/*.gradle*, ...) failed. Fail to hash files under directory'
1 parent 837deda commit e362f7c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/pr-pipeline.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,8 @@ jobs:
9999
path: |
100100
~/.gradle/caches
101101
~/.gradle/wrapper
102-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'gradle.properties') }}-${{ hashFiles('**/buildSrc/**') }}
102+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'gradle.properties', '**/buildSrc/**') }}
103103
restore-keys: |
104-
${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'gradle.properties') }}-
105104
${{ runner.os }}-gradle-
106105
107106
- name: Cache Gradle Build Cache
@@ -259,9 +258,8 @@ jobs:
259258
path: |
260259
~/.gradle/caches
261260
~/.gradle/wrapper
262-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'gradle.properties') }}-${{ hashFiles('**/buildSrc/**') }}
261+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'gradle.properties', '**/buildSrc/**') }}
263262
restore-keys: |
264-
${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'gradle.properties') }}-
265263
${{ runner.os }}-gradle-
266264
267265
- name: Cache Gradle Build Cache
@@ -351,9 +349,8 @@ jobs:
351349
path: |
352350
~/.gradle/caches
353351
~/.gradle/wrapper
354-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'gradle.properties') }}-${{ hashFiles('**/buildSrc/**') }}
352+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'gradle.properties', '**/buildSrc/**') }}
355353
restore-keys: |
356-
${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'gradle.properties') }}-
357354
${{ runner.os }}-gradle-
358355
359356
- name: Cache Gradle Build Cache

0 commit comments

Comments
 (0)