diff --git a/.github/workflows/check_versions.py b/.github/workflows/check_versions.py index c34ba1bb..8ac68501 100644 --- a/.github/workflows/check_versions.py +++ b/.github/workflows/check_versions.py @@ -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')