Skip to content

Commit 9ebbcc2

Browse files
authored
feat: use categorized conventional-commit release notes (#27)
1 parent f293c29 commit 9ebbcc2

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
@@ -190,10 +190,23 @@ jobs:
190190
failStepIfUnsuccessful: true
191191
appSlugFilter: github-actions
192192

193+
194+
- name: Generate release notes
195+
id: release_notes
196+
if: steps.get_target_release.outputs.create_release == 'true'
197+
uses: SAP/cs-actions/generate-release-notes-action@main
198+
with:
199+
personal-token: ${{ secrets.WORKFLOW_USER_GH_TOKEN }}
200+
new-tag: ${{ steps.get_target_release.outputs.tag }}
201+
previous-tag: ${{ steps.get_current_release.outputs.tag }}
202+
target-ref: ${{ steps.get_target_commit.outputs.sha }}
203+
193204
- name: Create Release
194205
if: steps.get_target_release.outputs.create_release == 'true'
195206
env:
196207
GH_TOKEN: ${{ secrets.WORKFLOW_USER_GH_TOKEN }}
197208
run: |
198209
gh release create ${{ steps.get_target_release.outputs.tag }} \
199-
--target "${{ steps.get_target_commit.outputs.sha }}"
210+
--target "${{ steps.get_target_commit.outputs.sha }}" \
211+
--title "${{ steps.get_target_release.outputs.tag }}" \
212+
--notes "${{ steps.release_notes.outputs.release-notes }}"

0 commit comments

Comments
 (0)