Fetch all artifacts

This commit is contained in:
Enrico Minack
2022-11-28 13:33:11 +01:00
parent febe04a4d9
commit 97b59592c9

View File

@@ -24,7 +24,7 @@ jobs:
artifacts_url=${{ github.event.workflow_run.artifacts_url }}
gh api $artifacts_url -q '.artifacts[] | select(.name=="unit-test-results" or .name=="Event File") | [.name, .archive_download_url] | @tsv' | while read artifact
gh api --paginate $artifacts_url -q '.artifacts[] | select(.name=="unit-test-results" or .name=="Event File") | [.name, .archive_download_url] | @tsv' | while read artifact
do
IFS=$'\t' read name url <<< "$artifact"
gh api $url > "$name.zip"