From a53f9a6f845ec6964263af4fa1bcb21d0556de31 Mon Sep 17 00:00:00 2001 From: Mathias Lesauvage Date: Thu, 21 Nov 2024 19:25:11 +0100 Subject: [PATCH] Fix workflow --- scripts/update_calver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/update_calver.py b/scripts/update_calver.py index 98b5c80be..0ed81f2a3 100644 --- a/scripts/update_calver.py +++ b/scripts/update_calver.py @@ -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():