File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 90
90
run : |
91
91
# delete previous versions w.r.t. max-versions-to-keep (if any)
92
92
$ToNatural = { [regex]::Replace($_, '\d+', { $args[0].Value.PadLeft(20) }) }
93
- $Versions = komac list-versions '${{ inputs.identifier }}' --json | ConvertFrom-Json | Sort-Object $ToNatural -Descending
93
+ #[Issue #307] -NoEnumerate has been added so that $Versions does not get converted to a string, when only one version exists in winget-pkgs
94
+ $Versions = komac list-versions '${{ inputs.identifier }}' --json | ConvertFrom-Json -NoEnumerate | Sort-Object $ToNatural -Descending
94
95
$Reason = 'This version is older than what has been set in `max-versions-to-keep` by the publisher.'
95
96
96
97
If ($Versions.Count + 1 -gt ${{ inputs.max-versions-to-keep }}) {
You can’t perform that action at this time.
0 commit comments