Skip to content

Delete API supposedly reports missing package despite finding it with Get API. #237

@Hacksawfred3232

Description

@Hacksawfred3232

Title says it all.

name: Container registry cleanup flow.
run-name: Cleaning up old images
on:
  schedule:
    - cron: "0 0 * * *"
  workflow_dispatch: {}
jobs:
  cleanup:
    runs-on: ubuntu-latest
    permissions:
      packages: write
    steps:
      - uses: actions/[email protected]
        with:
          delete-only-untagged-versions: true
          package-name: 'custampimages/ampcust'
          package-type: 'container'
          owner: 'Hacksawfred3232'
          min-versions-to-keep: 0
      - uses: actions/[email protected]
        with:
          package-name: 'custampimages/ampcust'
          package-type: 'container'
          min-versions-to-keep: 9
          owner: 'Hacksawfred3232'
          ignore-versions: '^srb2$|^srb2kart$|^ringracers$'
Run actions/[email protected]
  with:
    delete-only-untagged-versions: true
    package-name: custampimages/ampcust
    package-type: container
    owner: Hacksawfred3232
    min-versions-to-keep: 0
    num-old-versions-to-delete: 1
    ignore-versions: ^$
    delete-only-pre-release-versions: false
    token: ***
Total versions deleted till now: 12
Error: delete version API failed. Package not found. 
11 versions deleted till now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions