Skip to content

Commit 2d4758c

Browse files
authored
feat: use categorized conventional-commit release notes (#89)
1 parent fb3b810 commit 2d4758c

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,23 @@ jobs:
193193
failStepIfUnsuccessful: true
194194
appSlugFilter: github-actions
195195

196+
197+
- name: Generate release notes
198+
id: release_notes
199+
if: steps.get_target_release.outputs.create_release == 'true'
200+
uses: SAP/cs-actions/generate-release-notes-action@main
201+
with:
202+
personal-token: ${{ secrets.WORKFLOW_USER_GH_TOKEN }}
203+
new-tag: ${{ steps.get_target_release.outputs.tag }}
204+
previous-tag: ${{ steps.get_current_release.outputs.tag }}
205+
target-ref: ${{ steps.get_target_commit.outputs.sha }}
206+
196207
- name: Create Release
197208
if: steps.get_target_release.outputs.create_release == 'true'
198209
env:
199210
GH_TOKEN: ${{ secrets.WORKFLOW_USER_GH_TOKEN }}
200211
run: |
201212
gh release create ${{ steps.get_target_release.outputs.tag }} \
202-
--target "${{ steps.get_target_commit.outputs.sha }}"
213+
--target "${{ steps.get_target_commit.outputs.sha }}" \
214+
--title "${{ steps.get_target_release.outputs.tag }}" \
215+
--notes "${{ steps.release_notes.outputs.release-notes }}"

0 commit comments

Comments
 (0)