diff --git a/get-new-tag/action.yml b/get-new-tag/action.yml index 6409c50..07b3c81 100644 --- a/get-new-tag/action.yml +++ b/get-new-tag/action.yml @@ -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}"