How to determine which milestone was closed

Working on an action that will run when a milestone is closed. But I currently have no way to determine which milestone the action was triggered for. Unless I missed something in the documentation. Does anyone have pointers or a way to resolve this?

Please seeĀĀ for information on how to only trigger when the milestone is closed.

As part of the context you have access to the full event payload, for milestone you can find those details in the events and payloads documentationĀĀ  To access the milestone title, for example, you could use ${{ github.event.milestone.title }}.Ā  You can also access the payload on disk by reading the file located at $GITHUB_EVENT_PATH.

1 Like

Cheers! Didnā€™t realise the entire event was available through ${{ github.event }}. Thank you for your help :+1: