File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -31,26 +31,15 @@ jobs:
3131 steps :
3232 - name : Prepare git
3333 run : git config --global core.autocrlf false
34-
34+ if : startsWith(matrix.os, 'windows')
35+
3536 - uses : actions/checkout@v2
3637 - name : Set up JDK 11
3738 uses : actions/setup-java@v2
3839 with :
3940 distribution : temurin
4041 java-version : 11
41-
42- - name : Get Date
43- id : get-date
44- run : |
45- echo "::set-output name=date::$(/bin/date -u "+%Y-%m")"
46- shell : bash
47- - name : Cache Maven Repository
48- id : cache-maven
49- uses : actions/cache@v2
50- with :
51- path : ~/.m2/repository
52- # refresh cache every month to avoid unlimited growth
53- key : maven-repo-${{ runner.os }}-${{ steps.get-date.outputs.date }}
42+ cache : ' maven'
5443
5544 - name : Build with Maven
5645 run : mvn -B formatter:validate verify --file pom.xml
You can’t perform that action at this time.
0 commit comments