refactor(ci): merge changelog, archive and release workflows into one daily run (#19190)

* ci: merge changelog PR, archive and release into one daily workflow

Every merge to main used to trigger the changelog workflow, which opened,
approved and merged its own PR, so a busy day produced a changelog PR per
merge. A single workflow now runs once a day at 00:01 UTC: it collects the
pull requests merged during the previous UTC day, publishes the GitHub
release, and opens one CHANGELOG.md PR. On Sundays it also archives entries
older than 30 days in the same PR.

Replaces changelog-pr.yml, changelog-archive.yml and github-release.yml.
workflow_dispatch takes an optional date and an archive flag to redo a day.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* ci: add a dry_run input to the daily release workflow

With dry_run the workflow builds the notes and prints the release body and
the CHANGELOG.md diff, but skips the app tokens, the release, the push and
the pull request.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* ci: keep one rolling changelog PR per day, merge it at 00:01 UTC

While the day is running, every merge to main and every merged core pull
request rebuilds the entries on the changelog branch, so the one pull request
shows the day's notes and a bad title can be fixed by renaming the pull
request it comes from. At 00:01 UTC the previous day is finished: the pull
request is rebuilt with the whole day, merged automatically, and the release
is created from the same notes.

The range starts at the newest entry in CHANGELOG.md, so a day that failed is
picked up by the next run. Notes are sorted by merge time so they do not
reshuffle between runs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
TobiasandClaude Sonnet 5.5 authored and GitHub committed 2026-12-02 16:16:50 +01:00
1 parent e5aebc6cf6
commit 52bdc620b3
7 files changed
+889 -865

No files matched your search

+1 -1
View File
@@ -524,7 +524,7 @@ jobs:
# Labels go on at creation: they exempt the PR from the template check,
# which runs on "opened". "keep-open" rather than "automated pr", which
# changelog-pr.yml drops.
# daily-release.yml drops.
if url=$(gh pr create \
--title "${slug}: bump Python from ${our} to ${upstream}" \
--body "$body" \