Skip to content

Commit 0f33242

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

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,11 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v2
19-
- uses: actions/setup-java@v1
19+
- uses: actions/setup-java@v2
2020
with:
21-
java-version: '11.x'
22-
- name: Set cache key
23-
run: |
24-
echo "CACHE_KEY=$(expr $(date +%V) - 1 + 1)" >> $GITHUB_ENV
25-
echo "TIMESTAMP=$(expr $(date +%Y%m%d%H%M%S))" >> $GITHUB_ENV
26-
- uses: actions/cache@v2
27-
with:
28-
path: ~/.m2
29-
key: ${{ runner.os }}-maven-${{ env.CACHE_KEY }}
30-
21+
java-version: '11'
22+
distribution: 'adopt'
23+
cache: 'maven'
3124
- name: Build & Deploy
3225
run: |
3326
mvn install -e --batch-mode --settings .github/settings.xml --file pom.xml -DtrimStackTrace=false

0 commit comments

Comments
 (0)