Request: Add workflow name in event check_run payload #25919
-
hi folks
I think with workflow name, i can get the runner label than knows which runner to scale. but I can only see name “Build” which is job name and not unique. could you add “workflow” name in the event payload? or suggest a way I can tell which runner to scale. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @missedone, The workflow name is included in GITHUB CONTEXT: Since you can get the check_run id in the payload, you can get the workflow file with below link: Thanks |
Beta Was this translation helpful? Give feedback.
-
thanks, sounds a good workaround for now. |
Beta Was this translation helpful? Give feedback.
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