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
@ -60,6 +60,7 @@ So we can use for action:
|
|||||||
|
|
||||||
| params | description |
|
| params | description |
|
||||||
|----------------|----------------------------------------------------------|
|
|----------------|----------------------------------------------------------|
|
||||||
|
| cache-enabled | enable cache. Default true |
|
||||||
| cache-path | default cache path for Maven with value ~/.m2/repository |
|
| cache-path | default cache path for Maven with value ~/.m2/repository |
|
||||||
| cache-path-add | additional value for cache path |
|
| cache-path-add | additional value for cache path |
|
||||||
| cache-prefix | prefix value for `key` and `restore-keys` cache params |
|
| cache-prefix | prefix value for `key` and `restore-keys` cache params |
|
||||||
|
|||||||
@ -48,6 +48,11 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
|
|
||||||
# cache
|
# cache
|
||||||
|
cache-enabled:
|
||||||
|
description: 'Enable cache'
|
||||||
|
default: 'true'
|
||||||
|
required: false
|
||||||
|
|
||||||
cache-prefix:
|
cache-prefix:
|
||||||
description: 'Cache key prefix'
|
description: 'Cache key prefix'
|
||||||
required: false
|
required: false
|
||||||
@ -105,6 +110,7 @@ runs:
|
|||||||
distribution: '${{ inputs.java-distribution }}'
|
distribution: '${{ inputs.java-distribution }}'
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
|
if: inputs.cache-enabled == 'true'
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ inputs.cache-path }}
|
${{ inputs.cache-path }}
|
||||||
|
|||||||
Reference in New Issue
Block a user