From 76e41517967090882dc6de63581b573568e7de7e Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Tue, 9 Apr 2024 11:08:29 +0100 Subject: [PATCH] Debug cleanup script --- .github/workflows/remove-untagged.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/remove-untagged.yml b/.github/workflows/remove-untagged.yml index 610fa9f..242529d 100644 --- a/.github/workflows/remove-untagged.yml +++ b/.github/workflows/remove-untagged.yml @@ -28,10 +28,10 @@ jobs: console.log(version.metadata) console.log(version.metadata.container) console.log(version.metadata.container.tags) - # if (version.metadata.container.tags.length == 0 && version.name !== "latest" && version.name !== "preview") { - # console.log("Delete " + version.id) + /*if (version.metadata.container.tags.length == 0 && version.name !== "latest" && version.name !== "preview") { + console.log("Delete " + version.id) - # const deleteResponse = await github.request("DELETE /orgs/${{ github.repository_owner }}/packages/container/${{ matrix.image-name }}/versions/" + version.id, { }); - # console.log("status " + deleteResponse.status) - # } + const deleteResponse = await github.request("DELETE /orgs/${{ github.repository_owner }}/packages/container/${{ matrix.image-name }}/versions/" + version.id, { }); + console.log("status " + deleteResponse.status) + }*/ }