Skip to content

Commit

Permalink
change versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-artemkin committed Jan 23, 2024
1 parent 9f979c0 commit fa8f829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-v8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ jobs:
# взять последний тег
if [ -z "$revlist" ]; then
latestVersion="v1.0.0"
latestVersion="v$v8Version-1"
else
latestVersion="$(git describe --tags "$revlist")"
fi
# вычислить новый тег
latestVersionPrefix="$(awk -F'.' '{ $NF=""; print }' <<< "$latestVersion" | tr " " ".")"
latestVersionPrefix="$(awk -F'-' '{ $NF=""; print }' <<< "$latestVersion" | tr " " "-")"
latestMinorVersion="$(sed "s/$latestVersionPrefix//g" <<< "$latestVersion")"
newMinorVersion=$(( $latestMinorVersion + 1 ))
newVersion="$latestVersionPrefix$newMinorVersion"
Expand Down

0 comments on commit fa8f829

Please sign in to comment.