mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-01 23:51:49 +01:00
Merge branch 'bugfix/ci_auto_checkout_revision_of_project_used_in_ci' into 'master'
CI: get git describe from annotated tags Closes IDFCI-129 and IDFGH-721 See merge request espressif/esp-idf!10671
This commit is contained in:
@@ -196,7 +196,7 @@ def get_version():
|
||||
"""
|
||||
# Use git to look for a tag
|
||||
try:
|
||||
tag = subprocess.check_output(["git", "describe", "--tags", "--exact-match"]).strip().decode('utf-8')
|
||||
tag = subprocess.check_output(["git", "describe", "--exact-match"]).strip().decode('utf-8')
|
||||
is_stable = re.match(r"v[0-9\.]+$", tag) is not None
|
||||
return (tag, "tag", is_stable)
|
||||
except subprocess.CalledProcessError:
|
||||
|
||||
Reference in New Issue
Block a user