Skip to content

Commit

Permalink
enable caching
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkarlsen committed Aug 21, 2021
1 parent b0141c4 commit 2c32442
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ inputs:
description: Overwrite settings.xml
required: false
default: false
cache:
description: Caching of artifacts
required: false
default: true

runs:
using: "composite"
Expand All @@ -30,3 +34,12 @@ runs:
uses: stCarolas/setup-maven@v4.1
with:
maven-version: ${{ inputs.maven-version }}

- name: Cache local Maven repository
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 2c32442

Please sign in to comment.