actions / runner

The Runner for GitHub Actions :rocket:
https://github.com/features/actions
MIT License
4.65k stars 895 forks source link

Expose job name as env var #3281

Open edrevo opened 1 month ago

edrevo commented 1 month ago

This PR exposes the job display name as an environment variable. The job display name is exposed in webhooks as name(docs) so having it as an environment variable allows correlating data between the webhooks and processes that run in the runner.

This change would be specifically useful to improve Datadog's CI Visibility integration with GitHub Actions, where we currently require users to manually expose the job name as a variable for the integration to fully work (docs).

If this change is acceptable for the runner team, I am also happy to open a PR to update the documentation around default environment variables (docs).

edrevo commented 1 month ago

@Link- @nikola-jokic @TingluoHuang could this change be considered as an addition to the runner?

edrevo commented 2 weeks ago

Gentle ping on this one @Link- @nikola-jokic @TingluoHuang . Is there anything I can do to get this reviewed?