8338402: GHA: some of bundles may not get removed

Backport-of: d8e4d3f2d6c187f2487acd390a4e5fa2a99010ea
This commit is contained in:
Zdenek Zambersky 2024-09-10 11:02:30 +00:00 committed by Aleksey Shipilev
parent 325d5c87cd
commit ef87a06537

View File

@ -361,7 +361,7 @@ jobs:
-H 'Accept: application/vnd.github+json' \
-H 'Authorization: Bearer ${{ github.token }}' \
-H 'X-GitHub-Api-Version: 2022-11-28' \
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts')"
'${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100')"
BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("bundles-"))) | .[].id')"
for id in $BUNDLE_ARTIFACT_IDS; do
echo "Removing $id"