From a43846e065bbc200af4b2d4a273d5be82a656d5d Mon Sep 17 00:00:00 2001 From: Ryan Cragun Date: Mon, 22 Jan 2024 13:07:10 -0700 Subject: [PATCH] Allow optional code checkout Allow disabling the code checkout to allow caller workflows to control the checkout reference used when determining product version metadata. Signed-off-by: Ryan Cragun --- action.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 5492d8d..e590ee2 100644 --- a/action.yml +++ b/action.yml @@ -2,12 +2,18 @@ name: set-product-version author: Release Engineering description: Automates setting product version +inputs: + checkout: + description: | + Check out the code repository. Can be disabled if checkout is handled by the caller workflow. + default: true runs: using: composite steps: - - uses: actions/checkout@v3 + - if: inputs.checkout == 'true' + uses: actions/checkout@v3 - name: Check if Version File Exists shell: bash env: