Skip to content

get status of multiple jobs in the same workflow #25970

Discussion options

You must be logged in to vote

Now, github actions provide workflow jobs APIs , you could use it to list all the jobs of a workflow run. 

https://developer.github.com/v3/actions/workflow_jobs/#list-jobs-for-a-workflow-run

And there is an environment variable GITHUB_RUN_ID you could use to get the current workflow run id. 

You could get the conclusion element value for job status. 

There is another method to pass job status through artifacts, for more information, please check BrightRan’s solution here: 

https://github.community/t5/GitHub-Actions/How-get-the-status-of-previous-jobs/m-p/45511#M6237 

Replies: 9 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@yuval-katzman-digsec
Comment options

@aknosis
Comment options

@ghost
Comment options

@SimonHeimberg
Comment options

Comment options

You must be logged in to vote
1 reply
@rajat-mehraa
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment