@@ -19,7 +19,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
19
19
# Usage
20
20
21
21
``` yaml
22
- - uses : actions/delete-package-versions@v1
22
+ - uses : actions/delete-package-versions@v2
23
23
with :
24
24
# Can be a single package version id, or a comma separated list of package version ids.
25
25
# Defaults to an empty string.
@@ -92,7 +92,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
92
92
Delete all pre-release package versions except latest 10 in the same repo as the workflow
93
93
94
94
` ` ` yaml
95
- - uses : actions/delete-package-versions@v1
95
+ - uses : actions/delete-package-versions@v2
96
96
with :
97
97
package-name : ' test-package'
98
98
min-versions-to-keep : 10
@@ -107,7 +107,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
107
107
Delete all pre-release package versions except latest 10 in a different repo than the workflow
108
108
109
109
` ` ` yaml
110
- - uses : actions/delete-package-versions@v1
110
+ - uses : actions/delete-package-versions@v2
111
111
with :
112
112
owner : ' github'
113
113
repo : ' packages'
@@ -128,7 +128,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
128
128
Delete all except latest 3 package versions excluding major versions as per semver in the same repo as the workflow
129
129
130
130
` ` ` yaml
131
- - uses : actions/delete-package-versions@v1
131
+ - uses : actions/delete-package-versions@v2
132
132
with :
133
133
package-name : ' test-packae'
134
134
min-versions-to-keep : 3
@@ -144,7 +144,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
144
144
Delete all except latest 3 package versions excluding major versions as per semver in a different repo than the workflow
145
145
146
146
` ` ` yaml
147
- - uses : actions/delete-package-versions@v1
147
+ - uses : actions/delete-package-versions@v2
148
148
with :
149
149
owner : ' github'
150
150
repo : ' packages'
@@ -167,7 +167,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
167
167
Delete 3 oldest versions excluding major versions as per semver is the same repo as the workflow
168
168
169
169
` ` ` yaml
170
- - uses : actions/delete-package-versions@v1
170
+ - uses : actions/delete-package-versions@v2
171
171
with :
172
172
package-name : ' test-packae'
173
173
num-old-versions-to-delete : 3
@@ -185,7 +185,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
185
185
Delete 3 oldest versions excluding major versions as per semver is a differernt repo than the workflow
186
186
187
187
` ` ` yaml
188
- - uses : actions/delete-package-versions@v1
188
+ - uses : actions/delete-package-versions@v2
189
189
with :
190
190
owner : ' github'
191
191
repo : ' packages'
@@ -206,7 +206,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
206
206
Delete all except latest 2 versions of a package hosted in the same repo as the workflow
207
207
208
208
` ` ` yaml
209
- - uses : actions/delete-package-versions@v1
209
+ - uses : actions/delete-package-versions@v2
210
210
with :
211
211
package-name : ' test-package'
212
212
min-versions-to-keep : 2
@@ -221,7 +221,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
221
221
Delete all except latest 2 versions of a package hosted in a repo other than the workflow
222
222
223
223
` ` ` yaml
224
- - uses : actions/delete-package-versions@v1
224
+ - uses : actions/delete-package-versions@v2
225
225
with :
226
226
owner : ' github'
227
227
repo : ' packages'
@@ -241,7 +241,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
241
241
Delete the oldest 3 version of a package hosted in the same repo as the workflow
242
242
243
243
` ` ` yaml
244
- - uses : actions/delete-package-versions@v1
244
+ - uses : actions/delete-package-versions@v2
245
245
with :
246
246
package-name : ' test-package'
247
247
num-old-versions-to-delete : 3
@@ -256,7 +256,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
256
256
Delete the oldest 3 version of a package hosted in a different repo than the one executing the workflow
257
257
258
258
` ` ` yaml
259
- - uses : actions/delete-package-versions@v1
259
+ - uses : actions/delete-package-versions@v2
260
260
with :
261
261
owner : ' github'
262
262
repo : ' packages'
@@ -274,7 +274,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
274
274
__Example__
275
275
276
276
` ` ` yaml
277
- - uses : actions/delete-package-versions@v1
277
+ - uses : actions/delete-package-versions@v2
278
278
with :
279
279
package-name : ' test-package'
280
280
` ` `
@@ -286,7 +286,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
286
286
__Example__
287
287
288
288
` ` ` yaml
289
- - uses : actions/delete-package-versions@v1
289
+ - uses : actions/delete-package-versions@v2
290
290
with :
291
291
owner : ' github'
292
292
repo : ' packages'
@@ -305,7 +305,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
305
305
__Example__
306
306
307
307
` ` ` yaml
308
- - uses : actions/delete-package-versions@v1
308
+ - uses : actions/delete-package-versions@v2
309
309
with :
310
310
package-version-ids : ' MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3'
311
311
` ` `
@@ -319,7 +319,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
319
319
__Example__
320
320
321
321
` ` ` yaml
322
- - uses : actions/delete-package-versions@v1
322
+ - uses : actions/delete-package-versions@v2
323
323
with :
324
324
package-version-ids : ' MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3'
325
325
token : ${{ secrets.PAT }}
@@ -336,7 +336,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
336
336
__Example__
337
337
338
338
` ` ` yaml
339
- - uses : actions/delete-package-versions@v1
339
+ - uses : actions/delete-package-versions@v2
340
340
with :
341
341
package-version-ids : ' MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzQ5, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzUw'
342
342
` ` `
@@ -350,7 +350,7 @@ This action deletes versions of a package from [GitHub Packages](https://github.
350
350
__Example__
351
351
352
352
` ` ` yaml
353
- - uses : actions/delete-package-versions@v1
353
+ - uses : actions/delete-package-versions@v2
354
354
with :
355
355
package-version-ids : ' MDE0OlBhY2thZ2VWZXJzaW9uOTcyMDY3, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzQ5, MDE0OlBhY2thZ2VWZXJzaW9uOTcyMzUw'
356
356
token : ${{ secrets.PAT }}
0 commit comments