mirror of
https://github.com/immich-app/immich.git
synced 2026-09-30 13:23:21 +08:00
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:
co-authored by
bo0tzz
parent
bdc1763a68
commit
8140613d25
@@ -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[@]}"
|
||||
|
||||
Reference in New Issue
Block a user