Skip to content

Commit

Permalink
actually fix version
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Alvarez <[email protected]>
  • Loading branch information
pendo324 committed Oct 18, 2024
1 parent fcce212 commit 5aa5bd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/get-version-and-tag-for-ref.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ jobs:
echo "tag=$tag" >> ${GITHUB_OUTPUT}
if [ -n "${{ inputs.version }}" ]; then
echo "Version matches format: $version"
version=${{ inputs.version }}
echo "Version was supplied as input: $version"
elif [[ "${tag#v}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
version="${tag#v}"
echo "Version matches release format: $version"
else
echo "Version $version doesn't match format. Using test version: 0.0.1"
version="0.0.1"
Expand Down

0 comments on commit 5aa5bd4

Please sign in to comment.