You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above yaml, the job name is build(ubuntu-18.04, dev), build(ubuntu-18.04, prod), build(ubuntu-20.04, dev), build(ubuntu-20.04, prod). Because context.job is a build job, the method to identify it from the result of the list is complicated.
It is simple to add information like context.jobId.
Describe the enhancement
https://docs.github.com/en/rest/reference/actions#get-a-job-for-a-workflow-run
I want to use the above API from toolkit.
toolkit is currently unable to retrieve the information corresponding to the
job_id
.Code Snippet
Now we need to use the list API to identify the job_id in the executed job and combine it with name(context.job, GITHUB_JOB_NAME) to identify the job.
This works for simple jobs, but is more complicated when matrix is used.
The reason for this is that the name will be different from the context.job.
In the above yaml, the job name is
build(ubuntu-18.04, dev)
,build(ubuntu-18.04, prod)
,build(ubuntu-20.04, dev)
,build(ubuntu-20.04, prod)
. Because context.job is abuild
job, the method to identify it from the result of the list is complicated.It is simple to add information like
context.jobId
.The
job_id
information appears to be nowhere to be found, so it may be more than a fix for the toolkit itself.Additional information
This may not be the issue that opens the issue here.
In that case, I'm sorry.
refs: actions/runner#324
The text was updated successfully, but these errors were encountered: