Skip to content

Commit 239072a

Browse files
committed
adding cache key
1 parent 465d5b8 commit 239072a

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/gradle-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- name: Cache Gradle packages
1919
uses: actions/cache@v2
2020
with:
21+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/build.gradle') }}
2122
path: |
2223
~/.gradle/caches
2324
~/.gradle/wrapper

.github/workflows/mysql-5-7.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- name: Cache Gradle packages
3232
uses: actions/cache@v2
3333
with:
34+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/build.gradle') }}
3435
path: |
3536
~/.gradle/caches
3637
~/.gradle/wrapper

.github/workflows/mysql-8.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- name: Cache Gradle packages
3232
uses: actions/cache@v2
3333
with:
34+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/build.gradle') }}
3435
path: |
3536
~/.gradle/caches
3637
~/.gradle/wrapper

0 commit comments

Comments
 (0)