File tree Expand file tree Collapse file tree
actions/instrument/shared Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ gh_workflow_run() {
3636export -f gh_workflow_run
3737
3838gh_workflow_run_logs () {
39- wget --header=" Authorization: Bearer $INPUT_GITHUB_TOKEN " " ${GITHUB_API_URL:- https:// api.github.com} " /repos/" $GITHUB_REPOSITORY " /actions/runs/" $1 " /attempts/" $2 " /logs -O " $3 "
39+ wget -q - -header=" Authorization: Bearer $INPUT_GITHUB_TOKEN " " ${GITHUB_API_URL:- https:// api.github.com} " /repos/" $GITHUB_REPOSITORY " /actions/runs/" $1 " /attempts/" $2 " /logs -O " $3 "
4040}
4141export -f gh_workflow_run_logs
4242
@@ -57,7 +57,7 @@ export -f gh_artifacts
5757
5858gh_artifact_download () {
5959 local artifact_filename=" $( mktemp) "
60- gh_curl /actions/runs/" $1 " /artifacts' ?per_page=1&' name=" $3 " | jq ' .artifacts[0].id' | grep -v ' ^null$' | xargs -r -I ' {}' bash -c ' gh_curl "$@"' bash /actions/artifacts/' {}' /zip --head | tr -d ' \r' | grep ' ^location:' | cut -d ' ' -f 2- | xargs -r wget -O " $artifact_filename " && [ -r " $artifact_filename " ] && unzip " $artifact_filename " -d " $4 " && rm " $artifact_filename "
60+ gh_curl /actions/runs/" $1 " /artifacts' ?per_page=1&' name=" $3 " | jq ' .artifacts[0].id' | grep -v ' ^null$' | xargs -r -I ' {}' bash -c ' gh_curl "$@"' bash /actions/artifacts/' {}' /zip --head | tr -d ' \r' | grep ' ^location:' | cut -d ' ' -f 2- | xargs -r wget -q - O " $artifact_filename " && [ -r " $artifact_filename " ] && unzip " $artifact_filename " -d " $4 " && rm " $artifact_filename "
6161}
6262export -f gh_artifact_download
6363
You can’t perform that action at this time.
0 commit comments