mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-07-15 08:48:33 +00:00
update scripts to check most recent tag based on branch
This commit is contained in:
parent
ef3babc658
commit
406d8fba58
9
.github/scripts/fetch_and_compare_version.py
vendored
9
.github/scripts/fetch_and_compare_version.py
vendored
|
@ -42,9 +42,12 @@ def fetch_version_from_code():
|
||||||
|
|
||||||
|
|
||||||
def fetch_latest_git_tag():
|
def fetch_latest_git_tag():
|
||||||
list_tag_cmd = (
|
"""
|
||||||
'git tag --list WAMR-*.*.* --sort=committerdate --format="%(refname:short)"'
|
Get the most recent tag from the HEAD,
|
||||||
)
|
if it's main branch, it should be the latest release tag.
|
||||||
|
if it's release/x.x.x branch, it should be the latest release tag of the branch.
|
||||||
|
"""
|
||||||
|
list_tag_cmd = "git describe --tags --abbrev=0 HEAD"
|
||||||
p = subprocess.run(shlex.split(list_tag_cmd), capture_output=True, check=True)
|
p = subprocess.run(shlex.split(list_tag_cmd), capture_output=True, check=True)
|
||||||
|
|
||||||
all_tags = p.stdout.decode().strip()
|
all_tags = p.stdout.decode().strip()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user