Skip to content

Commit 4d57173

Browse files
Update branch reference check for main branch
Signed-off-by: Tony Xiang <[email protected]>
1 parent def9596 commit 4d57173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ runs:
5454
# Convert the short hash to a numeric value
5555
short_hash=$(printf "%08d" $((16#${sha:0:6})))
5656
57-
if [[ "$ref" == *"main"* ]]; then
57+
if [[ "$ref" == "refs/heads/main" ]]; then
5858
# Main branch: keep the version as is
5959
echo "$new_version"
6060
else

0 commit comments

Comments
 (0)