Generate Release Notes #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |