feat: custom release notes (#32191)

feat: custom release notes (#32172)

(cherry picked from commit b620efba388bf4a85081e1d07fc86f80d4d4b83c)

Co-authored-by: Jason Rasmussen <jason@rasm.me>
This commit is contained in:
immich-push-o-matic[bot]
2026-10-07 22:29:42 +02:00
committed by GitHub
co-authored by Jason Rasmussen
parent c6c8e516d7
commit 1c284cd4ef
8 changed files with 631 additions and 7 deletions
+18 -6
View File
@@ -136,13 +136,16 @@ jobs:
name: release-apk-signed
github-token: ${{ steps.generate-token.outputs.token }}
- name: Create draft release
- name: Setup Mise
uses: immich-app/devtools/actions/use-mise@06a9ef925332c91be647d6256642b86b398592c8 # use-mise-action-v3.2.1
with:
github_token: ${{ steps.generate-token.outputs.token }}
- name: Generate release notes
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
REPO: ${{ github.repository }}
TAG: ${{ needs.tag.outputs.version }}
PRERELEASE: ${{ needs.tag.outputs.rc }}
BRANCH: ${{ github.ref_name }}
run: |
tags=$(git -c versionsort.suffix=-rc tag --list 'v[0-9]*' --sort=-v:refname)
if [[ "${PRERELEASE}" != 'true' ]]; then
@@ -151,15 +154,24 @@ jobs:
previous=$(grep -A1 -xF "${TAG}" <<< "${tags}" | tail -1)
echo "generating notes from ${previous}"
mise //:notes --tag "${TAG}" --previous "${previous}" > "${RUNNER_TEMP}/notes.md"
cat "${RUNNER_TEMP}/notes.md"
- name: Create draft release
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
REPO: ${{ github.repository }}
TAG: ${{ needs.tag.outputs.version }}
PRERELEASE: ${{ needs.tag.outputs.rc }}
BRANCH: ${{ github.ref_name }}
run: |
gh release create "${TAG}" \
--repo "${REPO}" \
--target "${BRANCH}" \
--draft \
--verify-tag \
--prerelease="${PRERELEASE}" \
--notes-file misc/release/notes.tmpl \
--generate-notes \
--notes-start-tag "${previous}" \
--notes-file "${RUNNER_TEMP}/notes.md" \
docker/docker-compose.yml \
docker/docker-compose.rootless.yml \
docker/example.env \