Can I access the notes/body from a release inside a workflow? #26953
-
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 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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