Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.32 KB

README.md

File metadata and controls

58 lines (41 loc) · 1.32 KB

Delete Package Versions Actions

This action finds organisation packages that are linked to the repo the action is executed in and deletes versions that match the specified patterns.

Inputs

name

Required A regular expression that matches against the name of the package.

version

Required A regular expression that is matched against the name of the version that is being searched for, i.e. ^1.0.0-SNAPSHOT$ for an exact match or .*-SNAPSHOT for all snapshots.

type

Required The package type, i.e. npm or maven etc.

token

Required The access to token. The token must have permissions to read/write/delete packages in the whole organization.

tag

A regular expression that is matched against the name of the tag of a version.

untagged

A boolean value that, if set to true, will cause all untagged version to be considered for deletion.

Example usage

- uses: castlabs/[email protected]
  with:
    name: ".*"
    version: "1.0-SNAPSHOT"
    type: "maven"
    token: ${{ secrets.CLPLAYERS_FULL_PACKAGE_FULL_REPO }}

Delete all untagged containers

- uses: castlabs/[email protected]
  with:
    name: ".*"
    version: ".*"
    type: "container"
    untagged: true
    token: ${{ secrets.CLPLAYERS_FULL_PACKAGE_FULL_REPO }}