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Ā https://help.github.com/en/articles/events-that-trigger-workflows#milestone-event-milestoneĀ 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Ā https://developer.github.com/v3/activity/events/types/#milestoneevent.Ā  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: