feature: Extract latest changelog entry for release notes and update .gitignore #release
Some checks failed
Add release / Create release (push) Has been cancelled

This commit is contained in:
Keith Solomon
2025-03-26 09:26:38 -05:00
parent e8b0116ace
commit 6cb02fdf54
3 changed files with 12 additions and 2 deletions

View File

@@ -43,13 +43,22 @@ jobs:
run: |
echo "Tag to be created: ${{ steps.release-tag.outputs.tag }}"
- name: Extract latest changelog entry
id: extract-changelog
run: |
# Extract changelog for latest version section
changelog=$(awk '/^## /{i++} i==1{print}' CHANGELOG.md | tail -n +2)
echo "changelog<<EOF" >> "$GITHUB_OUTPUT"
echo "$changelog" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
- name: Create release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.release-tag.outputs.tag }}
name: Release ${{ steps.release-tag.outputs.tag }}
body: |
${{ github.event.head_commit.message }}
body: ${{ steps.extract-changelog.outputs.changelog }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.DS_Store

View File