Can I access the notes/body from a release inside a workflow?

I’d like to capture and pass along the release notes that I write for my GitHub release. Is it possible to get to these from within a workflow step attached to a release workflow trigger?

1 Like

Hi @tonyarnold,

You should be able to get all the information you want from the github.event.release context.

The information you need should be github.event.release.body, but there’s also github.event.release.tag_name for the version, github.event.release.name for the title, etc.

The structure of the release object can be found in the GitHub API documentation : https://developer.github.com/v3/repos/releases/#get-a-single-release

2 Likes