"...ssh:/git@developer.sourcefind.cn:2222/OpenDAS/dynamo.git" did not exist on "c61e0dd3ccafefcfad7d1153c53df8386779fc53"
Unverified Commit bba41321 authored by Keiven C's avatar Keiven C Committed by GitHub
Browse files

fix: use latest tag across all branches for version detection (#4229)


Signed-off-by: default avatarKeiven Chang <keivenchang@users.noreply.github.com>
Co-authored-by: default avatarKeiven Chang <keivenchang@users.noreply.github.com>
parent 674e2eca
...@@ -32,7 +32,7 @@ commit_id=$(git rev-parse --short HEAD) ...@@ -32,7 +32,7 @@ commit_id=$(git rev-parse --short HEAD)
current_tag=$(git describe --tags --exact-match 2>/dev/null | sed 's/^v//') || true current_tag=$(git describe --tags --exact-match 2>/dev/null | sed 's/^v//') || true
# Get latest TAG and add COMMIT_ID for dev # Get latest TAG and add COMMIT_ID for dev
latest_tag=$(git describe --tags --abbrev=0 "$(git rev-list --tags --max-count=1 main)" | sed 's/^v//') || true latest_tag=$(git describe --tags --abbrev=0 "$(git rev-list --tags --max-count=1)" | sed 's/^v//') || true
if [[ -z ${latest_tag} ]]; then if [[ -z ${latest_tag} ]]; then
latest_tag="0.0.1" latest_tag="0.0.1"
echo "No git release tag found, setting to unknown version: ${latest_tag}" echo "No git release tag found, setting to unknown version: ${latest_tag}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment