Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NamrataJha authored Nov 25, 2021
1 parent b19f4fe commit fc4c9fe
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand All @@ -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'
```
Expand All @@ -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'
Expand All @@ -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'
```
Expand All @@ -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 }}
Expand All @@ -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'
```
Expand All @@ -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 }}
Expand Down

0 comments on commit fc4c9fe

Please sign in to comment.