Skip to content

How to determine which milestone was closed #25847

Answered by chrispat
WyriHaximus asked this question in Actions
Discussion options

You must be logged in to vote

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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants