Expose GITHUB_JOB_ID as an environment variable
See original GitHub issueDescribe 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
Issue Analytics
- State:
- Created 4 years ago
- Reactions:24
- Comments:20 (3 by maintainers)
Top Results From Across the Web
How to use GitHub Actions environment variables
This hands-on article discusses the environment variables available within GitHub Actions and when we should use them.
Read more >How to use environment variables in Github Page?
To use environment variables, the general approach which is followed is to: Not expose them to the public; Keep it local at the...
Read more >How to use environment variables and secrets ...
The env keyword is a dedicated property defined by the GitHub Actions to declare our variables. Better to use this one, if you...
Read more >Working with GitHub Actions Environment Variables and ...
Defining an environment variable for one step is relatively simple. Open the .github/workflows/gatsby.yml file and add the following steps ...
Read more >How to Manage GitHub Actions Environment Variables and ...
GitHub Actions environment variables encrypts the values you put in secrets, so they are not visible nor readable in the naked eye.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please expose, this is making our developers confused especially if the job was running with flag “continue-on-error” and is green but we need to for example link to this job in automatically generated comment that is added to PR :<
That is the
check_suite
id. Depending on how you navigate sometimes you will get that URL. However, for slack I would recommend using the http://github.com/dentarg/actions-test/actions/runs/<GITHUB_RUN_ID>