Commit f256dd6
Normalize the releases JSON in a dedicated conversion function
Write-Output -NoEnumerate handed the caller an array nested inside an
array, so the tag name of every release was concatenated into one string
and rejected as an invalid SemVer. The JSON conversion now lives in its
own function that always yields a flat array, including when the gh
command produced no output at all.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 4ccb54f commit f256dd6
2 files changed
Lines changed: 85 additions & 6 deletions
File tree
- .github/actions/Resolve-PSModuleVersion
- src
- tests
Lines changed: 37 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
280 | 312 | | |
281 | 313 | | |
282 | 314 | | |
283 | 315 | | |
284 | 316 | | |
285 | 317 | | |
286 | 318 | | |
287 | | - | |
| 319 | + | |
288 | 320 | | |
289 | 321 | | |
290 | | - | |
| 322 | + | |
291 | 323 | | |
292 | 324 | | |
293 | | - | |
| 325 | + | |
294 | 326 | | |
295 | 327 | | |
296 | 328 | | |
| |||
302 | 334 | | |
303 | 335 | | |
304 | 336 | | |
305 | | - | |
| 337 | + | |
306 | 338 | | |
307 | 339 | | |
308 | 340 | | |
309 | 341 | | |
310 | 342 | | |
311 | 343 | | |
312 | 344 | | |
313 | | - | |
314 | | - | |
| 345 | + | |
315 | 346 | | |
316 | 347 | | |
317 | 348 | | |
| |||
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
94 | 142 | | |
95 | 143 | | |
96 | 144 | | |
| |||
0 commit comments