mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-12 09:26:53 +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
|
||||
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 }}
|
||||
|
||||
Reference in New Issue
Block a user