ffurrer2 / extract-release-notes

A GitHub Action to extract release notes from a "Keep a Changelog" formatted changelog file
MIT License
64 stars 25 forks source link

Support writing the outputs into files #350

Closed Goooler closed 3 months ago

Goooler commented 3 months ago

Now GH CLI supports releasing like

gh release create --title ${{ github.ref_name }} --notes-file release_notes.txt

It would be great if we could generate an output file for GH to use, I know we can do it like

echo "${{ steps.extract-release-notes.outputs.release_notes }}" > release_notes.txt

but some case have to be covered in #349.

Goooler commented 3 months ago

Seems this is optional, I miss-used the output with double quotations, it should be:

echo '${{ steps.extract-release-notes.outputs.release_notes }}' > release_notes.txt

here for writing the note file.

ffurrer2 commented 3 months ago

Hi @Goooler, have you tried the release_notes_file parameter? With this parameter it should be possible to write the release notes to a file.

Goooler commented 3 months ago

Ooops, I missed that, it works for me now.

Thanks!