Skip to content

Commit

Permalink
Merge branch 'main' into feature/rooted-images
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood authored Oct 13, 2023
2 parents 166f91e + 1e0f206 commit 214a87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/remove-untagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
{ per_page: ${{ env.PER_PAGE }}
});
for(version of response.data) {
if (version.metadata.container.tags.length == 0) {
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, { });
Expand Down

0 comments on commit 214a87d

Please sign in to comment.