Skip to content

Commit

Permalink
try explicit origin/main
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpmartinez committed Sep 4, 2024
1 parent c980450 commit 1ba5d1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def extract_version(file_path):
current_version_info = semver.VersionInfo.parse(current_version)

# Get the latest git tag
result = subprocess.run(['git', 'describe', '--tags', '--abbrev=0', 'main'], capture_output=True, text=True)
result = subprocess.run(['git', 'describe', '--tags', '--abbrev=0', 'origin/main'], capture_output=True, text=True)
latest_tag = result.stdout.strip()
print(f"Latest tag: {latest_tag}")
latest_tag = latest_tag.lstrip('v')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: git fetch --tags

- name: List latest tag
run: git describe --tags --abbrev=0 main
run: git describe --tags --abbrev=0 origin/main

- name: Set up Python
uses: actions/setup-python@v4
Expand Down

0 comments on commit 1ba5d1e

Please sign in to comment.