Skip to content

Commit 1122f16

Browse files
chore: bytt til setup-java maven cache
1 parent 0f33242 commit 1122f16

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.github/workflows/release-kontrakt.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,7 @@ jobs:
1414
with:
1515
java-version: 11
1616
distribution: 'adopt'
17-
18-
- name: Set cache key
19-
run: |
20-
echo "CACHE_KEY=$(expr $(date +%V) - 1 + 1)" >> $GITHUB_ENV
21-
echo "PREVIOUS_CACHE_KEY=$(expr $(date +%V) - 1 + 1)" >> $GITHUB_ENV
22-
- uses: actions/cache@v2
23-
with:
24-
path: ~/.m2
25-
key: ${{ runner.os }}-maven-${{ env.CACHE_KEY }}
26-
restore-keys: |
27-
${{ runner.os }}-maven-${{ env.PREVIOUS_CACHE_KEY }}
28-
17+
cache: 'maven'
2918
- name: Publish artifacts
3019
shell: bash
3120
run: |

0 commit comments

Comments
 (0)