diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 006f898..ea007c4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -68,21 +68,21 @@ jobs: cache-from: type=gha,scope=archivist cache-to: type=gha,mode=max,scope=archivist - - name: Cleanup untagged images - env: - GH_TOKEN: ${{ github.token }} - run: | - name=salesforce-archivist - to_delete=$( - gh api "/user/packages/container/${name}/versions" \ - --jq '.[] | select(.metadata.container.tags==[]) | .id' - ) - if [[ -z $to_delete ]]; then - echo "No untagged images found" - exit 0 - fi - - while read -r id; do - echo "Deleting untagged image id: ${id}" - gh api -X DELETE "/user/packages/container/${name}/versions/${id}"; - done <<< "$to_delete" +# - name: Cleanup untagged images +# env: +# GH_TOKEN: ${{ github.token }} +# run: | +# name=salesforce-archivist +# to_delete=$( +# gh api "/user/packages/container/${name}/versions" \ +# --jq '.[] | select(.metadata.container.tags==[]) | .id' +# ) +# if [[ -z $to_delete ]]; then +# echo "No untagged images found" +# exit 0 +# fi +# +# while read -r id; do +# echo "Deleting untagged image id: ${id}" +# gh api -X DELETE "/user/packages/container/${name}/versions/${id}"; +# done <<< "$to_delete"