Cleanup ghcr container versions
ActionsKeeps only the latest version of a container package on Github Container Registry (ghcr.io)
v0.3.3
LatestBy d22
This action deletes old versions of containers on Github container registry (ghcr.io). By default only the latest version.
This action works only for containers, no other package format.
Since the Github Token has no access to the container REST API, a PAT with packages read- and write-permission is needed to access the packages.
Required Access token (PAT) with packages read- and write-permisson.
Required Name of the package to work with
How many versions should be left untouched. Default is '1', only the latest.
uses: d22/[email protected]
with:
access-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
package-name: 'master-tool-dev'
uses: d22/[email protected]
with:
access-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
package-name: 'master-tool-dev'
versions-to-keep: 3
Cleanup ghcr container versions is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.