I am trying to download the logs of a particular workflow in github. I have referenced the following link for the same. However I am getting 302 as response code. Not sure what the issue here is. Its not downloading logs as expected
curl -v -u username:$token -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/ORGANIZATION/REPOSITORY/actions/runs/319282523477/logs
.
.
< HTTP/1.1 302 Found
< Date: Wed, 21 Oct 2020 07:47:13 GMT
< Content-Type: text/html;charset=utf-8
.
Location:
header containing the url to download the logs. This URL works fine on chrome but is not working with agents like curl or wget. Any reason why ? – Highminded