I have a github action I use to create releases, but I want to include release notes in each one automatically as well.
The end of my action runs this which is where I call the github gh CLI to create a new release:
# create a new release, and attach "*.zip" as extra artifacts.
- name: Create Github release with zip attached
run: gh release create ${{ steps.date.outputs.date }} *.zip --target develop
There is a -n
flag for "notes", but the docs show that as requiring a string - it does not auto-create release notes.
Is there a way to generate the release notes within my github action that will output the same thing that the Github web UI "Auto-Generate Release Notes" option does?