Update README.md

This commit is contained in:
Namrata Jha
2021-11-25 09:33:54 +05:30
committed by GitHub
parent b19f4fe385
commit fc4c9fe912

View File

@@ -19,7 +19,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
# Usage
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
# Can be a single package version id, or a comma separated list of package version ids.
# Defaults to an empty string.
@@ -92,7 +92,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
Delete all pre-release package versions except latest 10 in the same repo as the workflow
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
package-name: 'test-package'
min-versions-to-keep: 10
@@ -107,7 +107,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
Delete all pre-release package versions except latest 10 in a different repo than the workflow
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
owner: 'github'
repo: 'packages'
@@ -128,7 +128,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
Delete all except latest 3 package versions excluding major versions as per semver in the same repo as the workflow
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
package-name: 'test-packae'
min-versions-to-keep: 3
@@ -144,7 +144,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
Delete all except latest 3 package versions excluding major versions as per semver in a different repo than the workflow
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
owner: 'github'
repo: 'packages'
@@ -167,7 +167,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
Delete 3 oldest versions excluding major versions as per semver is the same repo as the workflow
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
package-name: 'test-packae'
num-old-versions-to-delete: 3
@@ -185,7 +185,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
Delete 3 oldest versions excluding major versions as per semver is a differernt repo than the workflow
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
owner: 'github'
repo: 'packages'
@@ -206,7 +206,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
Delete all except latest 2 versions of a package hosted in the same repo as the workflow
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
package-name: 'test-package'
min-versions-to-keep: 2
@@ -221,7 +221,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
Delete all except latest 2 versions of a package hosted in a repo other than the workflow
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
owner: 'github'
repo: 'packages'
@@ -241,7 +241,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
Delete the oldest 3 version of a package hosted in the same repo as the workflow
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
package-name: 'test-package'
num-old-versions-to-delete: 3
@@ -256,7 +256,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
Delete the oldest 3 version of a package hosted in a different repo than the one executing the workflow
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
owner: 'github'
repo: 'packages'
@@ -274,7 +274,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
__Example__
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
package-name: 'test-package'
```
@@ -286,7 +286,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
__Example__
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
owner: 'github'
repo: 'packages'
@@ -305,7 +305,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
__Example__
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
package-version-ids: 'MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3'
```
@@ -319,7 +319,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
__Example__
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
package-version-ids: 'MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3'
token: ${{ secrets.PAT }}
@@ -336,7 +336,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
__Example__
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
package-version-ids: 'MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzQ5, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzUw'
```
@@ -350,7 +350,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
__Example__
```yaml
- uses: actions/delete-package-versions@v1
- uses: actions/delete-package-versions@v2
with:
package-version-ids: 'MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzQ5, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzUw'
token: ${{ secrets.PAT }}