I have a GitHub Action that checks if a list of jobs (
Octokit.ActionsListJobsForWorkflowRunResponseJobsItem) contains the same id as the environment variable GITHUB_JOB in order to get the correct
Checking the workflow data object, I can see that the
name field is filed with the
jobs.<job_id> content, and this matches with the GITHUB_JOB variable.
However , when I set the
jobs.<job_id>.name , the field
name changed for this one as well, and I can’t compere with GITHUB_JOB anymore as this sticks to the jobs.<job_id>. Is this expected?
Is there any other way to check the conclusion based on the current job ? Ideally would be great get it from job id (integer).
am I missing something?