Skip to content

Commit

Permalink
Add checkout enable boolean (#90)
Browse files Browse the repository at this point in the history
* Add checkout enable boolean

* Update README.md
  • Loading branch information
7adityaraj authored Oct 5, 2024
1 parent 4095a89 commit 5eec3f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ For default values you only need:
| params | destination | default |
|------------------------------|---------------------|--------------------------|
| checkout-enabled | enabled | true |
| checkout-fetch-depth | fetch-depth | |
| checkout-submodules | submodules | |
| checkout-path | path | |
Expand Down
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ branding:
inputs:

# checkout
checkout-enabled:
description: 'Enable checkout'
default: 'true'
required: false

checkout-fetch-depth:
description: 'Number of commits to fetch'
required: false
Expand Down Expand Up @@ -111,6 +116,7 @@ runs:
steps:

- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
if: inputs.checkout-enabled == 'true'
with:
fetch-depth: '${{ inputs.checkout-fetch-depth }}'
submodules: '${{ inputs.checkout-submodules }}'
Expand Down

0 comments on commit 5eec3f7

Please sign in to comment.