@@ -310,46 +310,3 @@ jobs:
310310 bootjdk-platform : windows-x64
311311 runs-on : windows-2025
312312
313- # Remove bundles so they are not misconstrued as binary distributions from the JDK project
314- remove-bundles :
315- name : ' Remove bundle artifacts'
316- runs-on : ubuntu-22.04
317- if : always()
318- needs :
319- - build-linux-x64
320- - build-linux-x86
321- - build-linux-x64-hs-nopch
322- - build-linux-x64-hs-zero
323- - build-linux-x64-hs-minimal
324- - build-linux-x64-hs-optimized
325- - build-linux-cross-compile
326- - build-macos-x64
327- - build-macos-aarch64
328- - build-windows-x64
329- - build-windows-aarch64
330- - test-linux-x64
331- - test-linux-x86
332- - test-macos-x64
333- - test-windows-x64
334-
335- steps :
336- - name : ' Remove bundle artifacts'
337- run : |
338- # Find and remove all bundle artifacts
339- # See: https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28
340- ALL_ARTIFACT_IDS="$(curl -sL \
341- -H 'Accept: application/vnd.github+json' \
342- -H 'Authorization: Bearer ${{ github.token }}' \
343- -H 'X-GitHub-Api-Version: 2022-11-28' \
344- '${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts?per_page=100')"
345- BUNDLE_ARTIFACT_IDS="$(echo "$ALL_ARTIFACT_IDS" | jq -r -c '.artifacts | map(select(.name|startswith("bundles-"))) | .[].id')"
346- for id in $BUNDLE_ARTIFACT_IDS; do
347- echo "Removing $id"
348- curl -sL \
349- -X DELETE \
350- -H 'Accept: application/vnd.github+json' \
351- -H 'Authorization: Bearer ${{ github.token }}' \
352- -H 'X-GitHub-Api-Version: 2022-11-28' \
353- "${{ github.api_url }}/repos/${{ github.repository }}/actions/artifacts/$id" \
354- || echo "Failed to remove bundle"
355- done
0 commit comments