fix: open an announcement discussion for each release line (#31163)

fix: open an announcement discussion for each release line (#31101)

(cherry picked from commit 5666d57f15)

Co-authored-by: bo0tzz <git@bo0tzz.me>
This commit is contained in:
immich-push-o-matic[bot]
2026-08-31 19:07:35 +00:00
committed by GitHub
co-authored by bo0tzz
parent bdc1763a68
commit 8140613d25
+7 -1
View File
@@ -201,9 +201,15 @@ jobs:
latest=false
fi
discussion=()
if [[ "${TAG}" =~ ^v[0-9]+\.[0-9]+\.0(-rc\.[0-9]+)?$ ]]; then
discussion=(--discussion-category Announcements)
fi
echo "publishing ${TAG} (latest=${latest}, prerelease=${PRERELEASE}, previous=${previous:-none})"
gh release edit "${TAG}" \
--repo "${REPO}" \
--draft=false \
--latest="${latest}" \
--prerelease="${PRERELEASE}"
--prerelease="${PRERELEASE}" \
"${discussion[@]}"