mirror of
http://43.153.184.91:8080/https://github.com/s4u/setup-maven-action.git
synced 2026-01-27 11:13:00 +08:00
Add checkout enable boolean (#90)
* Add checkout enable boolean * Update README.md
This commit is contained in:
parent
4095a894c5
commit
5eec3f78f3
@ -28,6 +28,7 @@ For default values you only need:
|
|||||||
|
|
||||||
| params | destination | default |
|
| params | destination | default |
|
||||||
|------------------------------|---------------------|--------------------------|
|
|------------------------------|---------------------|--------------------------|
|
||||||
|
| checkout-enabled | enabled | true |
|
||||||
| checkout-fetch-depth | fetch-depth | |
|
| checkout-fetch-depth | fetch-depth | |
|
||||||
| checkout-submodules | submodules | |
|
| checkout-submodules | submodules | |
|
||||||
| checkout-path | path | |
|
| checkout-path | path | |
|
||||||
|
|||||||
@ -8,6 +8,11 @@ branding:
|
|||||||
inputs:
|
inputs:
|
||||||
|
|
||||||
# checkout
|
# checkout
|
||||||
|
checkout-enabled:
|
||||||
|
description: 'Enable checkout'
|
||||||
|
default: 'true'
|
||||||
|
required: false
|
||||||
|
|
||||||
checkout-fetch-depth:
|
checkout-fetch-depth:
|
||||||
description: 'Number of commits to fetch'
|
description: 'Number of commits to fetch'
|
||||||
required: false
|
required: false
|
||||||
@ -111,6 +116,7 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
||||||
|
if: inputs.checkout-enabled == 'true'
|
||||||
with:
|
with:
|
||||||
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
|
||||||
submodules: '${{ inputs.checkout-submodules }}'
|
submodules: '${{ inputs.checkout-submodules }}'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user