File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,11 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@v2
17
- - uses : actions/setup-java@v1
17
+ - uses : actions/setup-java@v2
18
18
with :
19
- java-version : ' 11.x'
20
- - name : Set cache key
21
- run : |
22
- echo "CACHE_KEY=$(expr $(date +%V) - 1 + 1)-${{ github.event.pull_request.number }}" >> $GITHUB_ENV
23
- echo "PREVIOUS_CACHE_KEY=$(expr $(date +%V) - 1 + 1)" >> $GITHUB_ENV
24
- - uses : actions/cache@v2
25
- with :
26
- path : ~/.m2
27
- key : ${{ runner.os }}-maven-${{ env.CACHE_KEY }}
28
- restore-keys : |
29
- ${{ runner.os }}-maven-${{ env.PREVIOUS_CACHE_KEY }}
30
-
19
+ java-version : ' 11'
20
+ distribution : ' adopt'
21
+ cache : ' maven'
31
22
- name : Build
32
23
run : mvn verify --settings .github/settings.xml -DtrimStackTrace=false
33
24
env :
You can’t perform that action at this time.
0 commit comments