From 4099ae5b4748bd8033f7ec3f0a3b660307405333 Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Fri, 23 May 2025 16:04:05 +0200 Subject: [PATCH] Update 'latest' tag using commit hash instead of version ref --- bin/scripts/release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/scripts/release.sh b/bin/scripts/release.sh index 7c90474..74945d3 100755 --- a/bin/scripts/release.sh +++ b/bin/scripts/release.sh @@ -81,7 +81,9 @@ log_and_run git push origin "$NEXT_VERSION" # Update the latest tag printfe "%s\n" "cyan" "Updating 'latest' tag..." -log_and_run git tag -f latest "$NEXT_VERSION" +# Get the commit that the new version tag points to +COMMIT_HASH=$(git rev-parse "$NEXT_VERSION") +log_and_run git tag -f latest "$COMMIT_HASH" log_and_run git push -f origin latest printfe "%s\n" "green" "Successfully tagged and pushed version $NEXT_VERSION"