Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit afc7a86

Browse files
authored
Fix actions (#123)
* Update build.yml * Fix (hopefully) final syntax error Thanks, YAML * Use separate caches for each job * Try another way of keying
1 parent 5589410 commit afc7a86

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/cache@v2
1919
with:
2020
path: ~/.gradle/caches
21-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
21+
key: ${{ runner.os }}-gradle-build-${{ hashFiles('**/*.gradle*') }}
2222
restore-keys: |
2323
${{ runner.os }}-gradle-
2424
- uses: eskatos/gradle-command-action@v1
@@ -37,11 +37,11 @@ jobs:
3737
with:
3838
java-version: 8
3939
- uses: actions/cache@v2
40-
with:
41-
path: ~/.gradle/caches
42-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
43-
restore-keys: |
44-
${{ runner.os }}-gradle-
40+
with:
41+
path: ~/.gradle/caches
42+
key: ${{ runner.os }}-gradle-checkstyle-${{ hashFiles('**/*.gradle*') }}
43+
restore-keys: |
44+
${{ runner.os }}-gradle-
4545
- uses: eskatos/gradle-command-action@v1
4646
with:
4747
arguments: checkstyleMain
@@ -54,11 +54,11 @@ jobs:
5454
with:
5555
java-version: 8
5656
- uses: actions/cache@v2
57-
with:
58-
path: ~/.gradle/caches
59-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
60-
restore-keys: |
61-
${{ runner.os }}-gradle-
57+
with:
58+
path: ~/.gradle/caches
59+
key: ${{ runner.os }}-gradle-license-${{ hashFiles('**/*.gradle*') }}-license
60+
restore-keys: |
61+
${{ runner.os }}-gradle-
6262
- uses: eskatos/gradle-command-action@v1
6363
with:
6464
arguments: checkLicenses

0 commit comments

Comments
 (0)