Skip to content

Commit

Permalink
Use updated version which supports caching natively
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkarlsen committed Aug 23, 2021
1 parent 26dc1bd commit eff8fa6
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,19 @@ inputs:
description: Overwrite settings.xml
required: false
default: false
cache:
description: Caching of artifacts
required: false
default: true

runs:
using: "composite"
steps:
- name: Setup java
uses: actions/setup-java@v2.2.0
uses: actions/setup-java@v2.3.0
with:
distribution: ${{ inputs.distribution }}
overwrite-settings: ${{ inputs.overwrite-settings }}
java-version: ${{ inputs.java-version }}
cache: 'maven'

- name: Set up Maven
uses: stCarolas/setup-maven@v4.1
with:
maven-version: ${{ inputs.maven-version }}

- name: Cache local Maven repository
# https://github.com/actions/runner/issues/1283
# if: inputs.cache
uses: actions/cache@v2.1.6
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

0 comments on commit eff8fa6

Please sign in to comment.