mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-12 01:16:54 +08:00
Check if gh can stream logs
This commit is contained in:
13
.github/workflows/ReusableWorkflow.yml
vendored
13
.github/workflows/ReusableWorkflow.yml
vendored
@@ -39,13 +39,14 @@ jobs:
|
|||||||
set -x
|
set -x
|
||||||
uuid="$(cat /proc/sys/kernel/random/uuid)"
|
uuid="$(cat /proc/sys/kernel/random/uuid)"
|
||||||
echo "$uuid"
|
echo "$uuid"
|
||||||
sleep 60
|
# sleep 60
|
||||||
# https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#download-workflow-run-logs
|
# 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
|
# gh api "/repos/{owner}/{repo}/actions/runs/${run_id:?}/logs" >logs.zip
|
||||||
unzip -- logs.zip "*.txt"
|
# unzip -- logs.zip "*.txt"
|
||||||
find .
|
# find .
|
||||||
grep -rnH ReusableWorkflow.yml .
|
# grep -rnH ReusableWorkflow.yml .
|
||||||
grep -rnH "$uuid" .
|
# grep -rnH "$uuid" .
|
||||||
|
gh run view "${run_id:?}" --log
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run_id: ${{ github.run_id }}
|
run_id: ${{ github.run_id }}
|
||||||
|
|||||||
Reference in New Issue
Block a user