Add checkout enable boolean (#90)

* Add checkout enable boolean

* Update README.md
This commit is contained in:
Adi 2024-10-05 17:05:58 +03:00 committed by GitHub
parent 4095a894c5
commit 5eec3f78f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -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 | |

View File

@ -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 }}'