Skip to content

Commit fc4c9fe

Browse files
authored
Update README.md
1 parent b19f4fe commit fc4c9fe

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
1919
# Usage
2020

2121
```yaml
22-
- uses: actions/delete-package-versions@v1
22+
- uses: actions/delete-package-versions@v2
2323
with:
2424
# Can be a single package version id, or a comma separated list of package version ids.
2525
# Defaults to an empty string.
@@ -92,7 +92,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
9292
Delete all pre-release package versions except latest 10 in the same repo as the workflow
9393
9494
```yaml
95-
- uses: actions/delete-package-versions@v1
95+
- uses: actions/delete-package-versions@v2
9696
with:
9797
package-name: 'test-package'
9898
min-versions-to-keep: 10
@@ -107,7 +107,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
107107
Delete all pre-release package versions except latest 10 in a different repo than the workflow
108108
109109
```yaml
110-
- uses: actions/delete-package-versions@v1
110+
- uses: actions/delete-package-versions@v2
111111
with:
112112
owner: 'github'
113113
repo: 'packages'
@@ -128,7 +128,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
128128
Delete all except latest 3 package versions excluding major versions as per semver in the same repo as the workflow
129129
130130
```yaml
131-
- uses: actions/delete-package-versions@v1
131+
- uses: actions/delete-package-versions@v2
132132
with:
133133
package-name: 'test-packae'
134134
min-versions-to-keep: 3
@@ -144,7 +144,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
144144
Delete all except latest 3 package versions excluding major versions as per semver in a different repo than the workflow
145145
146146
```yaml
147-
- uses: actions/delete-package-versions@v1
147+
- uses: actions/delete-package-versions@v2
148148
with:
149149
owner: 'github'
150150
repo: 'packages'
@@ -167,7 +167,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
167167
Delete 3 oldest versions excluding major versions as per semver is the same repo as the workflow
168168
169169
```yaml
170-
- uses: actions/delete-package-versions@v1
170+
- uses: actions/delete-package-versions@v2
171171
with:
172172
package-name: 'test-packae'
173173
num-old-versions-to-delete: 3
@@ -185,7 +185,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
185185
Delete 3 oldest versions excluding major versions as per semver is a differernt repo than the workflow
186186
187187
```yaml
188-
- uses: actions/delete-package-versions@v1
188+
- uses: actions/delete-package-versions@v2
189189
with:
190190
owner: 'github'
191191
repo: 'packages'
@@ -206,7 +206,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
206206
Delete all except latest 2 versions of a package hosted in the same repo as the workflow
207207
208208
```yaml
209-
- uses: actions/delete-package-versions@v1
209+
- uses: actions/delete-package-versions@v2
210210
with:
211211
package-name: 'test-package'
212212
min-versions-to-keep: 2
@@ -221,7 +221,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
221221
Delete all except latest 2 versions of a package hosted in a repo other than the workflow
222222
223223
```yaml
224-
- uses: actions/delete-package-versions@v1
224+
- uses: actions/delete-package-versions@v2
225225
with:
226226
owner: 'github'
227227
repo: 'packages'
@@ -241,7 +241,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
241241
Delete the oldest 3 version of a package hosted in the same repo as the workflow
242242
243243
```yaml
244-
- uses: actions/delete-package-versions@v1
244+
- uses: actions/delete-package-versions@v2
245245
with:
246246
package-name: 'test-package'
247247
num-old-versions-to-delete: 3
@@ -256,7 +256,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
256256
Delete the oldest 3 version of a package hosted in a different repo than the one executing the workflow
257257
258258
```yaml
259-
- uses: actions/delete-package-versions@v1
259+
- uses: actions/delete-package-versions@v2
260260
with:
261261
owner: 'github'
262262
repo: 'packages'
@@ -274,7 +274,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
274274
__Example__
275275
276276
```yaml
277-
- uses: actions/delete-package-versions@v1
277+
- uses: actions/delete-package-versions@v2
278278
with:
279279
package-name: 'test-package'
280280
```
@@ -286,7 +286,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
286286
__Example__
287287
288288
```yaml
289-
- uses: actions/delete-package-versions@v1
289+
- uses: actions/delete-package-versions@v2
290290
with:
291291
owner: 'github'
292292
repo: 'packages'
@@ -305,7 +305,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
305305
__Example__
306306
307307
```yaml
308-
- uses: actions/delete-package-versions@v1
308+
- uses: actions/delete-package-versions@v2
309309
with:
310310
package-version-ids: 'MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3'
311311
```
@@ -319,7 +319,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
319319
__Example__
320320
321321
```yaml
322-
- uses: actions/delete-package-versions@v1
322+
- uses: actions/delete-package-versions@v2
323323
with:
324324
package-version-ids: 'MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3'
325325
token: ${{ secrets.PAT }}
@@ -336,7 +336,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
336336
__Example__
337337
338338
```yaml
339-
- uses: actions/delete-package-versions@v1
339+
- uses: actions/delete-package-versions@v2
340340
with:
341341
package-version-ids: 'MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzQ5, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzUw'
342342
```
@@ -350,7 +350,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
350350
__Example__
351351
352352
```yaml
353-
- uses: actions/delete-package-versions@v1
353+
- uses: actions/delete-package-versions@v2
354354
with:
355355
package-version-ids: 'MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzQ5, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzUw'
356356
token: ${{ secrets.PAT }}

0 commit comments

Comments
 (0)