fix: prevent double channel suffix in project name

This commit is contained in:
RiDDiX
2026-01-29 00:41:47 +01:00
parent 80b4c29bed
commit 64f90a36fe

View File

@@ -52,9 +52,18 @@ jobs:
CHANGELOG_URL="${{ github.event.inputs.changelogUrl }}" CHANGELOG_URL="${{ github.event.inputs.changelogUrl }}"
fi fi
# Append channel to project name if not latest (but not for testing) # Only append channel if:
if [ "$CHANNEL" != "latest" ] && [ "$PROJECT" != "hamh-testing" ]; then # 1. Channel is not "latest"
PROJECT="$PROJECT-$CHANNEL" # 2. Project doesn't already contain the channel suffix
if [ "$CHANNEL" != "latest" ]; then
case "$PROJECT" in
*-alpha|*-testing)
# Project already has channel suffix, don't append
;;
*)
PROJECT="$PROJECT-$CHANNEL"
;;
esac
fi fi
echo "project=$PROJECT" >> "$GITHUB_OUTPUT" echo "project=$PROJECT" >> "$GITHUB_OUTPUT"