[CI] Add release note generating step in the release action#635
[CI] Add release note generating step in the release action#635YooSunYoung wants to merge 3 commits into
Conversation
…ash script and python script.
|
Interesting! Will this workflow overwrite whatever was in the release notes originally? Or just append to it? |
I just used |
|
If possible I think it would be better to append to the existing release notes. Then the person making the release can just leave them empty and they'll be populated automatically, or they can add their own release notes and the generated notes will be appended below. |
Merge existing release notes with newly generated notes before uploading.
| - name: Merge existing release note with generated note | ||
| run: | | ||
| gh release view ${PACKAGE}/${VERSION} -R scipp/ess --json body -q .body >> existing-note.md | ||
| if [ -s existing-note.md ]; then | ||
| cat existing-note.md >> new-release-note.md | ||
| fi | ||
| cat .ess_release_cache/${PACKAGE}-${VERSION}-${PACKAGE}-${LAST_VERSION}-releasenote.md >> new-release-note.md |
There was a problem hiding this comment.
@jokasimr I added this step to handle the existing release note.
Is that what you meant in the comment...?
i.e. in case someone wrote something in advance in the release note.
Release note editting steps are added in the
release.yml.It's split into two jobs:
I tested in a fork https://github.com/YooSunYoung/ess/releases/tag/essnmx%2F26.6.2
but not sure if it would work as expected in the action here as well...
Manual Test
Here is the example how I ran the scripts using
essnmx/26.6.0andessnmx/26.4.0as an example.Prerequisites
Download the commit information
The script only runs with
bashsince it has some syntax thatshdoesn't have...Generate release note.
By default, the generated note will be stored under
.ess_release_cache/,so in this case,
.ess_release_cache/essnmx-26.6.0-essnmx-26.4.0-releasenote.md.Here is the example output from this test:
What's Changed
ESSnmx
Full Changelog: essnmx/26.4.0...essnmx/26.6.0