mirror of
https://github.com/s4u/setup-maven-action.git
synced 2026-02-18 00:00:11 +08:00
Added toggle for cache
This commit is contained in:
committed by
Slawomir Jaranowski
parent
57ca7f1a81
commit
5727e29093
@ -48,6 +48,11 @@ inputs:
|
||||
required: false
|
||||
|
||||
# cache
|
||||
cache-enabled:
|
||||
description: 'Enable cache'
|
||||
default: 'true'
|
||||
required: false
|
||||
|
||||
cache-prefix:
|
||||
description: 'Cache key prefix'
|
||||
required: false
|
||||
@ -105,6 +110,7 @@ runs:
|
||||
distribution: '${{ inputs.java-distribution }}'
|
||||
|
||||
- uses: actions/cache@v3
|
||||
if: inputs.cache-enabled == 'true'
|
||||
with:
|
||||
path: |
|
||||
${{ inputs.cache-path }}
|
||||
|
||||
Reference in New Issue
Block a user