From fa8f8299ddc44ea7b42fee331dbdf42b4b4fd5a9 Mon Sep 17 00:00:00 2001 From: "artem.artemkin" Date: Tue, 23 Jan 2024 20:18:03 +0300 Subject: [PATCH] change versioning --- .github/workflows/build-v8.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-v8.yml b/.github/workflows/build-v8.yml index e368850..fd02167 100644 --- a/.github/workflows/build-v8.yml +++ b/.github/workflows/build-v8.yml @@ -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"