Replies: 1 comment 5 replies
-
Try adding octokit.actions.downloadJobLogsForWorkflowRun({
method: "HEAD",
owner : "r-devel",
repo: "r-svn",
job_id: job.id
}).then(function(x){
window.open(x.url);
}); That should follow the redirect, without downloading the final response body |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to show the raw log file for a job in the browser. Simplified:
This works, but it is not ideal because it doesn't show the popup until after the entire log file is downloaded.
This is because the call to
https://api.github.com/repos/owner/repo/actions/jobs/{{id}}/logs
redirects with a 302 to the final URL of the log file, which takes a long time to download.Instead I would like to just get the temporary raw-log url, and open that url in a new window, without first waiting for octo.js to follow the original redirect to download the entire raw log file in ajax. Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions