Added ref: ${{ github.ref }} to access latest tag information in GitHub Action virtual environment. If no tag is found, it will get the commit message.
Made tag annotation part of the generated release notes echo "$(git tag -l --sort=taggerdate --format="%(contents:subject)" | tail -n 1)" > RELEASE_NOTES. If no annotation is added, it will get the commit message.
Use the contents of the RELEASE_NOTES file as the generated release notes body_path: RELEASE_NOTES
Updated release workflow as follows:
ref: ${{ github.ref }}
to access latest tag information in GitHub Action virtual environment. If no tag is found, it will get the commit message.echo "$(git tag -l --sort=taggerdate --format="%(contents:subject)" | tail -n 1)" > RELEASE_NOTES
. If no annotation is added, it will get the commit message.RELEASE_NOTES
file as the generated release notesbody_path: RELEASE_NOTES