Check if gh can stream logs

This commit is contained in:
Curtis Vogt
2025-01-24 11:15:16 -06:00
parent 69674bfc14
commit b02b27b5c2

View File

@@ -39,13 +39,14 @@ jobs:
set -x
uuid="$(cat /proc/sys/kernel/random/uuid)"
echo "$uuid"
sleep 60
# sleep 60
# https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#download-workflow-run-logs
gh api "/repos/{owner}/{repo}/actions/runs/${run_id:?}/logs" >logs.zip
unzip -- logs.zip "*.txt"
find .
grep -rnH ReusableWorkflow.yml .
grep -rnH "$uuid" .
# gh api "/repos/{owner}/{repo}/actions/runs/${run_id:?}/logs" >logs.zip
# unzip -- logs.zip "*.txt"
# find .
# grep -rnH ReusableWorkflow.yml .
# grep -rnH "$uuid" .
gh run view "${run_id:?}" --log
env:
GH_TOKEN: ${{ github.token }}
run_id: ${{ github.run_id }}