From 5eec3f78f3b3e08e00e98734df8481ba94c2f837 Mon Sep 17 00:00:00 2001 From: Adi <7adityaraj@gmail.com> Date: Sat, 5 Oct 2024 17:05:58 +0300 Subject: [PATCH] Add checkout enable boolean (#90) * Add checkout enable boolean * Update README.md --- README.md | 1 + action.yml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 34b4867..3d49372 100644 --- a/README.md +++ b/README.md @@ -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 | | diff --git a/action.yml b/action.yml index 7d36e45..5cf1644 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -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 }}'