Skip to content

Request: Add workflow name in event check_run payload #25919

Answered by weide-zhou
missedone asked this question in Actions
Discussion options

You must be logged in to vote

Hi @missedone,

The workflow name is included in GITHUB CONTEXT: ${{ github.workflow }}, however it’s not included in the check_run event payload. You can raise a feature_request here where github product manager will take a review.

Since you can get the check_run id in the payload, you can get the workflow file with below link:
https://github.com/{org}/{repo}/actions/runs/{checkrun_id}/workflow, parse the selfhosted runner info then.

Thanks

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
2 participants