Skip to content

Expose GITHUB_JOB_ID as an environment variable #324

@MarshallOfSound

Description

@MarshallOfSound

Describe the enhancement
Expose GITHUB_JOB_ID as an environment variable to the running steps. We need this in order for a job to be able to self-identify itself and potentially send it's own ID to a different service that would then use the GitHub API to perform actions (like check logs for instance).

Code Snippet
It looks like we need to add job_id to the whitelist here --> https://github.com/actions/runner/blob/master/src/Runner.Worker/GitHubContext.cs

Not sure though, hence raising this issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions