From fc4c9fe9124691791f1856863589939fd5a1c071 Mon Sep 17 00:00:00 2001 From: Namrata Jha Date: Thu, 25 Nov 2021 09:33:54 +0530 Subject: [PATCH] Update README.md --- README.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 3a0167d4..04e1626e 100644 --- a/README.md +++ b/README.md @@ -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 }}