From 6c43b7016da11421d801dc2cfe4e18f038e13dae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 2 Nov 2023 12:42:50 +0100 Subject: [PATCH] no longer delete existing assets we now have both aarch64/x86_64 overwriting each other --- build-images.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/build-images.sh b/build-images.sh index 6ea18ad..4ac3279 100755 --- a/build-images.sh +++ b/build-images.sh @@ -45,13 +45,6 @@ main() { gh release create --title "$tag (build $(date +"%Y-%m-%d"))" "$tag" fi gh release upload --clobber "$tag" "${assets[@]}" - - gh release view --json assets | jq -r ".assets | map(.name) | .[] | select(test(\"$arch\"))" >"$TMP/existing-assets" - - for asset in "${assets[@]}"; do - basename "$asset" >>"$TMP/uploaded-assets" - done - sort "$TMP/uploaded-assets" "$TMP/existing-assets" | uniq -u | xargs --no-run-if-empty -I{} gh release delete-asset --yes "$tag" {} } main "$@"