get action job id

is it possible to retreive the action job id?

Thank you very much


1 Like

Not today.  As part of launching our API later this month you will be able to do that.


Hi, do you have updates to get the action job id?

Thank you



Would it be available via context variable to access within the job itself?

1 Like

GITHUB_RUN_ID is available as an environment variable.

In the github context, you can get this with github.run_id.

Here are the docs:

I’m afraid that the value has been asked for is “job id” not RUN_ID.

Below is a sample return from a Github API:

  "total_count": 3,
  "jobs": [
      "id": 520876130,
      "run_id": 59355962,

However, I noticed that there’s a new github.job context variable to return “job id”

Still, it’s not the same from the API, but i guess it would work for context of the question

Is there any update on the status of having access to the job_id and/or check_run_id (the same, as I understand it).

just listing all available contexts (GitHub/runner/job) and print all env variables and can’t find it there
I was also checking if you use matrix parameterization, there is no way to get any filtering bypass to reidentify the self job id from asking to give me all jobs if the particular run…