From 07e381382648f5ddaf1e15639af3d909a1af7852 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Thu, 4 Nov 2021 18:36:45 -0400 Subject: [PATCH] ci: preview untagged image deletion [skip ci] --- .github/workflows/maintenance/delete_ghcr_dangling_images.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maintenance/delete_ghcr_dangling_images.sh b/.github/workflows/maintenance/delete_ghcr_dangling_images.sh index f33c6aa2..19c24fb6 100755 --- a/.github/workflows/maintenance/delete_ghcr_dangling_images.sh +++ b/.github/workflows/maintenance/delete_ghcr_dangling_images.sh @@ -23,8 +23,9 @@ fi echo -e "\nDeleting dangling images..." while read -r line; do id="$line" + echo "Processing image $id" ## Workaround for https://github.com/cli/cli/issues/4286 and https://github.com/cli/cli/issues/3937 - echo -n | gh api --method DELETE /user/packages/container/${container}/versions/${id} --input - + #echo -n | gh api --method DELETE /user/packages/container/${container}/versions/${id} --input - echo Dangling image with ID $id deleted successfully done <<< $ids_to_delete