Skip to content

Commit 260e53d

Browse files
Update build.yml
1 parent bbde182 commit 260e53d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ jobs:
2828
strategy:
2929
matrix:
3030
os: [ubuntu-latest, windows-latest]
31-
3231
steps:
32+
- uses: actions/checkout@v2
33+
- name: Prepare git
34+
run: git config --global core.autocrlf false
35+
3336
- uses: actions/checkout@v2
34-
3537
- name: Set up JDK 11
3638
uses: actions/setup-java@v2
3739
with:
@@ -49,11 +51,6 @@ jobs:
4951
with:
5052
path: ~/.m2/repository
5153
# refresh cache every month to avoid unlimited growth
52-
key: maven-repo-${{ runner.os }}-${{ steps.get-date.outputs.date }}
53-
54-
- name: Prepare git
55-
run: git config --global core.autocrlf false
56-
- uses: actions/checkout@v2
57-
54+
key: maven-repo-${{ runner.os }}-${{ steps.get-date.outputs.date }}
5855
- name: Build with Maven
5956
run: mvn -B formatter:validate verify --file pom.xml

0 commit comments

Comments
 (0)