neomediatech/Delete Package Versions
Deletes package versions
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| package-version-ids | Comma separated string of package version ids to delete. | no | — |
| owner | Owner of the repo containing the package version to delete. Defaults to the owner of the repo running the action. | no | — |
| package-name | Name of the package containing the version to delete. | yes | — |
| package-type | Type of package. Can be one of container, maven, npm, nuget, or rubygems. | yes | — |
| num-old-versions-to-delete | Number of versions to delete starting with the oldest version. Defaults to 1. | no | 1 |
| min-versions-to-keep | Number of versions to keep starting with the latest version By default keeps no version. To delete all versions set this as 0. | no | -1 |
| ignore-versions | Regex pattern for package versions to ignore. Defaults to delete all versions. | no | ^$ |
| delete-only-pre-release-versions | Deletes only pre-release versions. The number of pre-release versions to keep can be specified by min-versions-to-keep. When this is set num-old-versions-to-delete and ignore-versions will not be taken into account. By default this is set to false | no | false |
| delete-only-untagged-versions | Deletes only untagged versions in case of a container package. Does not work for other package types. The number of untagged versions to keep can be specified by min-versions-to-keep. When this is set num-old-versions-to-delete will not be taken into account. By default this is set to false | no | false |
| token | Token with the necessary scopes to delete package versions. If num-old-versions-to-delete is used the token also needs the read packages scope. Defaults to github.token scoped to the repo running the action. To delete package versions of a package outside the repo the action is running in use a Personal Access Token stored as a secret. | no | ${{ github.token }} |
Outputs
no outputs