Skip to content

Could I get issue title in Github actions by environment variables? #26715

Discussion options

You must be logged in to vote

Yes, @jsoref is right there.

It’s not exactly env var and not for all GH events, but in this way you could access some context for few events.

If to use events eg issues Events that trigger workflows - GitHub Docs or issue_comment Events that trigger workflows - GitHub Docs some information will be inside payload, for example for issues Webhook events and payloads - GitHub Docs.
Then inside ${{ github.event.issue.title }} will be title of issue that triggered event.

@KouWakai you can check this Get contents/body of issue in action as well

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

You must be logged in to vote
0 replies
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
3 participants