Skip to content

Generate Release Notes #4

Generate Release Notes

Generate Release Notes #4

name: Generate Release Notes
on:
workflow_dispatch: # Enables manual triggering
release:
types:
- created
jobs:
generate-release-notes:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Generate Release Notes
id: notes
uses: release-drafter/release-drafter@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-name: custom-config.yml
- name: Upload Release Notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Ensure token is available
run: |
gh release edit ${{ github.event.release.id }} \
--notes "${{ steps.notes.outputs.release_notes }}"