From 4d57173c5591348e2eae586cfa3d7c332a0b86b6 Mon Sep 17 00:00:00 2001 From: Tony Xiang <19280867+TonyXiang8787@users.noreply.github.com> Date: Wed, 26 Nov 2025 12:59:14 +0100 Subject: [PATCH] Update branch reference check for main branch Signed-off-by: Tony Xiang <19280867+TonyXiang8787@users.noreply.github.com> --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 5619c85..d967558 100644 --- a/action.yml +++ b/action.yml @@ -54,7 +54,7 @@ runs: # Convert the short hash to a numeric value short_hash=$(printf "%08d" $((16#${sha:0:6}))) - if [[ "$ref" == *"main"* ]]; then + if [[ "$ref" == "refs/heads/main" ]]; then # Main branch: keep the version as is echo "$new_version" else