summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-14 14:39:20 +0200
committerChristoph Berg <myon@debian.org>2026-10-14 14:39:20 +0200
commitc576a4281ef8c87990ae6399393a827dfaccacd5 (patch)
tree0f28b7d1fc2ba73ccea5d7513281b0f8cae76fb6 /.github/workflows
parentffc62c792c9a5196cb4ce7a353287dfe20db6524 (diff)
New upstream version 3.3.0~beta2+dfsgupstream/3.3.0_beta2+dfsgupstream
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/public-release.yml22
1 files changed, 17 insertions, 5 deletions
diff --git a/.github/workflows/public-release.yml b/.github/workflows/public-release.yml
index f515a6fd..2792f7ee 100644
--- a/.github/workflows/public-release.yml
+++ b/.github/workflows/public-release.yml
@@ -455,11 +455,23 @@ jobs:
if [ "$CREATED" = true ]; then
QUICK_DOWNLOADS=$(python3 .github/scripts/generate-quick-downloads.py \
"$GITHUB_REPOSITORY" "$GITHUB_REF_NAME" "${FILES[@]}" || true)
- if [ -n "$QUICK_DOWNLOADS" ]; then
- GENERATED_NOTES=$(gh release view "$GITHUB_REF_NAME" --json body --jq .body)
- printf '%s\n\n---\n\n%s\n' "$QUICK_DOWNLOADS" "$GENERATED_NOTES" > "$RUNNER_TEMP/release-notes.md"
- gh release edit "$GITHUB_REF_NAME" --notes-file "$RUNNER_TEMP/release-notes.md"
+ CHANGES=$(python3 .github/scripts/generate-change-list.py \
+ "$GITHUB_REPOSITORY" "$GITHUB_REF_NAME" || true)
+ if [ -z "$CHANGES" ]; then
+ echo "::warning::No change list was generated; keeping GitHub's generated notes."
+ CHANGES=$(gh release view "$GITHUB_REF_NAME" --json body --jq .body || true)
+ fi
+ if [ -z "$CHANGES" ]; then
+ echo "::warning::The release notes could not be read; the release body was left unchanged."
else
- echo "::warning::Quick Downloads picker was empty; generated notes were left unchanged."
+ NOTES=$CHANGES
+ if [ -n "$QUICK_DOWNLOADS" ]; then
+ NOTES=$(printf '%s\n\n---\n\n%s' "$QUICK_DOWNLOADS" "$CHANGES")
+ else
+ echo "::warning::Quick Downloads picker was empty."
+ fi
+ printf '%s\n' "$NOTES" > "$RUNNER_TEMP/release-notes.md"
+ gh release edit "$GITHUB_REF_NAME" --notes-file "$RUNNER_TEMP/release-notes.md" \
+ || echo "::warning::The release notes could not be updated."
fi
fi