Open
Conversation
Using GitHub's internal thing for draft release notes instead
The gpg action needs a git repository now.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the “Start Release” GitHub Actions workflow to automate not only the RC tagging/branching steps, but also (when run from main) bumping main to the next ~dev development version immediately after starting the release.
Changes:
- Makes
shaoptional and reorders steps (checkout before GPG import). - Adds Debian symbols release edits and consolidates staging/commit behavior for the RC start.
- Adds a “Start development of next version” step that bumps versions and updates Debian/RPM changelogs on
main.
Comment on lines
+134
to
+159
| awk --include=inplace \ | ||
| -v next_version='${{ steps.version.outputs.next_version }}' \ | ||
| -v begin_pat='Begin development for ${{ steps.version.outputs.version }}' ' | ||
| $0~begin_pat { | ||
| print " * Begin development for " next_version " release" | ||
| in_release=1 | ||
| next | ||
| } | ||
| in_release && /ABI summary/ { | ||
| abi_summary=1 | ||
| } | ||
| abi_summary && /bumped to/ { | ||
| gsub(/bumped to/, "unchanged at") | ||
| } | ||
| abi_summary && /^$/ { | ||
| in_release=0 | ||
| abi_summary=0 | ||
| } | ||
| { print } | ||
| ' debian/changelog | ||
|
|
||
| # Update the RPM changelog | ||
| awk --include=inplace \ | ||
| -v version_pat='${{ steps.version.outputs.version }}~dev-1$' \ | ||
| -v begin_pat='Begin development for ${{ steps.version.outputs.version }}' \ | ||
| -v next_version='${{ steps.version.outputs.next_version }}' \ |
| ' rpm/mir.spec | ||
|
|
||
| git add CMakeLists.txt debian/changelog rpm/mir.spec | ||
| git commit -m "Start development for ${NEXT_VERSION} release" |
Comment on lines
6
to
9
| sha: | ||
| description: 'Commit-ish to release' | ||
| required: true | ||
| required: false | ||
| type: string |
| # Bump CMake version | ||
| sed --in-place -E 's/(VERSION\s+)[0-9]+\.[0-9]+\.[0-9]+/\1${{ steps.version.outputs.next_version }}/' CMakeLists.txt | ||
|
|
||
| # Add a Debian changelog entry |
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.
What's new?
"Start release" will now begin development on
main.How to test
Check out the test run on my fork, and the result in:
Checklist