Skip to content

Commit

Permalink
Allow optional code checkout
Browse files Browse the repository at this point in the history
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 <me@ryan.ec>
  • Loading branch information
ryancragun committed Jan 22, 2024
1 parent 70a1890 commit a43846e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ name: set-product-version
author: Release Engineering <rel-eng@hashicorp.com>
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:
Expand Down

0 comments on commit a43846e

Please sign in to comment.