ci(release): record every release as an empty commit on main#1394
Merged
Conversation
Extend the tag-triggered release workflow with a new `commit-release-notes` job that records each published release as an empty commit on main. The commit's subject follows chore(release): Open Install Library Release vX.Y.Z, D Month YYYY and its body carries the release contents (per-commit `- subject (short-sha)` list, generated from `git log <prev>..<new>` between the just-released tag and the immediately preceding v-tag) plus a `Release:` link to the GitHub release page for one-click navigation. The job runs after the existing `build` job (which creates the GitHub Release), consumes its `html_url` output for the release link, uses the default `github-actions[bot]` identity via `GITHUB_TOKEN`, and includes a single rebase-and-retry to survive a concurrent push to main. No changelog file is written (repo has no changelog); the commit message itself is the release record on main.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extend the tag-triggered release workflow (`release.yml`) so that every published release also lands as a marker commit on `main`.
Test plan