-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download actions job logs from API #33858
base: main
Are you sure you want to change the base?
Conversation
I am sure you just copied & pasted the code from somewhere without understanding what each line does. |
Works for me.
I would prefer I guess EDIT Sorry some parts are incorrect from my side... The gh compatible api path of
|
We were looking at the wrong section of the gh docu. You are implementing this endpoint https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#download-job-logs-for-a-workflow-run--code-samples under a different url. The one from GitHub has no |
job_id is a string which is from the workflow not the id stored in the database. |
GitHub is good in mixing names, yes job_id in workflow yaml is a string. job_id in workflow_job api object is a number from the database see here: The example has a really big number, that is a global database id I guess
GitHub Actions users have hard time to correlate a workflow execution from the runner to a workflow_job api id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, left some non functional suggestions
Co-authored-by: ChristopherHX <[email protected]>
Co-authored-by: ChristopherHX <[email protected]>
Related to #33709, #31416
It's similar with https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#download-job-logs-for-a-workflow-run--code-samples.
This use
job_id
as path parameter which is consistent with Github's APIs.