Skip to content

Commit

Permalink
split
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-artemkin committed Dec 27, 2023
1 parent 7fa770b commit 77757fd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/create-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:
- name: create tag
run: |
latestVersion="$(git describe --tags $(git rev-list --tags --max-count=1))"
if [ -z "$latestVersion" ]; then
revlist="$(git rev-list --tags --max-count=1)"
if [ -z "$revlist" ]; then
latestVersion="1.0.0"
fi
else
latestVersion="$(git describe --tags "$revlist")"
fi
latestVersionPrefix="$(awk -F'.' '{ $NF=""; print }' <<< "$latestVersion" | tr " " ".")"
latestMinorVersion="$(sed "s/$latestVersionPrefix//g" <<< "$latestVersion")"
Expand Down

0 comments on commit 77757fd

Please sign in to comment.