Skip to content

Commit

Permalink
Only release a gardenlinux0 package if it is triggered from main
Browse files Browse the repository at this point in the history
  • Loading branch information
nanory committed Nov 30, 2023
1 parent dd6577e commit 617adc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/bin/build_source
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ get_version() (

# No version has been provided. Check if there is already a Garden Linux version 0
# if not, the current package will be the first one. Otherwise, simply use the commit hash.
if git -C /input tag | grep -q "gardenlinux/${package_version}gardenlinux0"; then
if (git -C /input rev-parse --abbrev-ref HEAD | grep -qv "main") || (git -C /input tag | grep -q "gardenlinux/${package_version}gardenlinux0"); then
version="${package_version}gardenlinux~${commit_hash}"
else
version="${package_version}gardenlinux0"
Expand Down

0 comments on commit 617adc5

Please sign in to comment.