According to the GitHub CLI docs for gh run view
, I should be able to query the logs of a run with this command:
gh run view --log <run-id>
For instance, to get the full log for run 2796702959
in the vitejs/vite
repo:
gh run view -R vitejs/vite --log 2796702959
But that command returns nothing. Enabling debug reveals no errors:
GH_DEBUG=true gh run view -R vitejs/vite --log 2796702959
⣾* Request at 2022-08-04 19:55:51.795659 -0500 CDT m=+0.012528935
* Request to https://api.github.com/repos/vitejs/vite/actions/runs/2796702959
⣻* Request took 283.249521ms
* Request at 2022-08-04 19:55:52.08233 -0500 CDT m=+0.299195200
* Request to https://api.github.com/repos/vitejs/vite/actions/runs/2796702959/jobs
⣾%
Env: macOS Big Sur, gh
v2.11.3, GNU bash
v3.2.57
How do I actually query the run's logs with gh
?