This action finds organisation packages that are linked to the repo the action is executed in and deletes versions that match the specified patterns.
Required A regular expression that matches against the name of the package.
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.
Required The package type, i.e. npm or maven etc.
Required The access to token. The token must have permissions to read/write/delete packages in the whole organization.
A regular expression that is matched against the name of the tag of a version.
A boolean value that, if set to true, will cause all untagged version to be considered for deletion.
- 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 }}