From 64f90a36fe8a6b7219287b48b66c997798a85d42 Mon Sep 17 00:00:00 2001 From: RiDDiX Date: Thu, 29 Jan 2026 00:41:47 +0100 Subject: [PATCH] fix: prevent double channel suffix in project name --- .github/workflows/release-addons.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-addons.yaml b/.github/workflows/release-addons.yaml index ae2f805..9856328 100644 --- a/.github/workflows/release-addons.yaml +++ b/.github/workflows/release-addons.yaml @@ -52,9 +52,18 @@ jobs: CHANGELOG_URL="${{ github.event.inputs.changelogUrl }}" fi - # Append channel to project name if not latest (but not for testing) - if [ "$CHANNEL" != "latest" ] && [ "$PROJECT" != "hamh-testing" ]; then - PROJECT="$PROJECT-$CHANNEL" + # Only append channel if: + # 1. Channel is not "latest" + # 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 echo "project=$PROJECT" >> "$GITHUB_OUTPUT"