Files
delete-package-versions/action.yml

76 lines
2.1 KiB
YAML
Raw Permalink Normal View History

name: Delete Package Versions
description: Deletes package versions
2020-01-29 10:13:06 -05:00
inputs:
package-version-ids:
description: Comma separated string of package version ids to delete.
required: false
owner:
description: >
Owner of the repo containing the package version to delete.
Defaults to the owner of the repo running the action.
required: false
repo:
description: >
Repo containing the package version to delete.
Defaults to the repo running the action.
required: false
package-name:
description: >
Name of the package containing the version to delete.
Required if dynamically deleting oldest versions.
required: false
num-old-versions-to-delete:
description: >
Number of versions to delete starting with the oldest version.
Defaults to 1.
required: false
default: "1"
min-versions-to-keep:
description: >
Number of versions to keep starting with the latest version
2021-12-14 12:39:22 +00:00
By default keeps no version.
To delete all versions set this as 0.
required: false
2021-12-14 12:39:22 +00:00
default: "-1"
2021-11-12 03:46:59 +00:00
ignore-versions:
description: >
Regex pattern for package versions to ignore.
Defaults to delete all versions.
2021-11-12 03:46:59 +00:00
required: false
default: "^$"
delete-only-pre-release-versions:
description: >
2021-12-14 12:39:22 +00:00
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
required: false
default: "false"
2021-11-12 03:46:59 +00:00
token:
description: >
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.
required: false
default: ${{ github.token }}
2020-01-29 10:13:06 -05:00
runs:
2022-03-02 07:40:19 +00:00
using: node16
main: dist/index.js
branding:
icon: package
color: blue