Get URL for page where the logs will appear for the current job

In a GitHub Actions workflow there are context variables for the current run ID and the current job name. These are sufficient to build a URL like this:

https://github.com/REPO/actions/runs/RUN_ID

This URL takes you to the following page:
image
I’d like to take the user to the page that would be accessed by clicking the “Import” job in the screenshot above, which has a URL like this:

https://github.com/REPO/actions/runs/RUN_ID/job/JOB_ID

This page looks like this:


I cannot find this JOB_ID anywhere in the context variable documentation. There is github.job, but this gives a job name like “import”, which leads to a 404 if I put it in the URL above. There is also job.container.id, but this seems to be an unrelated ID, and doesn’t work.

How can I construct the URL for the page in the second screenshot above?