From 99c924eba5e2319c888d02c6029627b5b1c16f08 Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Wed, 27 Oct 2021 22:03:50 -0500 Subject: [PATCH] Add skjolber/maven-cache-github-action; remove -U from mvn --- .github/workflows/maven.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index e44387df..492d7c0c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -24,6 +24,10 @@ jobs: java-version: '17' distribution: 'adopt' cache: maven + - name: Restore Maven cache + uses: skjolber/maven-cache-github-action@v1 + with: + step: restore - name: maven-settings-action uses: s4u/maven-settings-action@v2.4.1 with: @@ -36,4 +40,8 @@ jobs: - name: Cat settings.xml run: cat /home/runner/.m2/settings.xml - name: Build with Maven - run: mvn -U -B package --file pom.xml + run: mvn -B package --file pom.xml + - name: Save Maven cache + uses: skjolber/maven-cache-github-action@v1 + with: + step: save