Skip to content

Commit 17f01ca

Browse files
Merge pull request #8 from PowerGridModel/fix-main-branch-match
Update branch reference check for main branch
2 parents def9596 + 4d57173 commit 17f01ca

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)