Skip to content

Commit

Permalink
more quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
obezpalko committed May 22, 2024
1 parent ba8d80e commit 35b26d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get-new-tag/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ runs:
new_tag="$( git tag --list "${new_tag}" )"
if [ -n "${tag}" ] ; then
# tag found, we need increase patch
latest_tag_patch=$( git tag --list "${parent_prefix}.${parent_minor:-0}.*${parent_extra} | tail -n 1 | sed -r 's/^[^.][0-9]*\.[0-9]+\.([0-9]+)[^0-9]?.*$/\1/' )"
latest_tag_patch="$( git tag --list "${parent_prefix}.${parent_minor:-0}.*${parent_extra}" | tail -n 1 | sed -r 's/^[^.][0-9]*\.[0-9]+\.([0-9]+)[^0-9]?.*$/\1/' )"
new_tag="${parent_prefix}.${parent_minor:-0}.$(( ${latest_tag_patch:-0} + ${{ inputs.increment }} ))${parent_extra}"
fi
echo "tag=${new_tag}" | tee -a "${GITHUB_OUTPUT}"
Expand Down

0 comments on commit 35b26d0

Please sign in to comment.