mirror of
https://github.com/RiDDiX/home-assistant-addons.git
synced 2026-07-14 12:28:09 +08:00
fix: prevent double channel suffix in project name
This commit is contained in:
15
.github/workflows/release-addons.yaml
vendored
15
.github/workflows/release-addons.yaml
vendored
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user