Skip to content

Commit

Permalink
add fetch tags
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpmartinez committed Sep 4, 2024
1 parent 4d426bb commit beba32e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def extract_version(file_path):
current_version_info = semver.VersionInfo.parse(current_version)

# Get the latest git tag
subprocess.run(['git', 'fetch', '--tags'])
result = subprocess.run(['git', 'describe', '--tags', '--abbrev=0'], capture_output=True, text=True)
latest_tag = result.stdout.strip()
latest_tag = latest_tag.lstrip('v')
Expand Down

0 comments on commit beba32e

Please sign in to comment.