Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfy76700 committed Nov 21, 2024
1 parent 6bbf7fd commit a53f9a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/update_calver.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ def run_linux_command(command: str):
# If an error occurs during the execution, return an error tuple
return -1, '', str(e)

_, CURRENT_TAG, _ = run_linux_command("git describe --tags --always")

LATEST_TAG = None
with open(f"{FILE_DIR}/last_tag.txt", "r", encoding="utf-8") as f:
LATEST_TAG = f.read().strip()
_, LIST_CHANGED_FILES, _ = run_linux_command(f"git diff --name-only {LATEST_TAG} head")
_, LIST_CHANGED_FILES, _ = run_linux_command(f"git diff --name-only {LATEST_TAG} {CURRENT_TAG}")

list_config_paths = []
for line in LIST_CHANGED_FILES.splitlines():
Expand Down

0 comments on commit a53f9a6

Please sign in to comment.