mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-03-27 00:57:47 -04:00
(maint) Fix release-notes.md for 3.9.1 and auto-generate from CHANGELOG in workflow
This commit is contained in:
parent
23eb5dc949
commit
7157f9237e
2 changed files with 11 additions and 12 deletions
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
|
|
@ -29,6 +29,13 @@ jobs:
|
|||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
echo "Found version $version from lib/vmpooler/version.rb"
|
||||
|
||||
- name: Generate Release Notes
|
||||
run: |
|
||||
version=$(grep VERSION lib/vmpooler/version.rb |rev |cut -d "'" -f2 |rev)
|
||||
awk "/^## \[${version}\]/{found=1; next} found && /^## \[/{exit} found{print}" CHANGELOG.md > release-notes.md
|
||||
echo "Generated release-notes.md for version ${version}:"
|
||||
cat release-notes.md
|
||||
|
||||
- name: Tag Release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue