Skip to content

Commit 78da98d

Browse files
Merge pull request #26 from theohbrothers/refactor/ci-sort-jobs-by-descending-order-of-package-version
Refactor (ci): Sort jobs by descending order of package version
2 parents 7ec87cb + c17be38 commit 78da98d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate/templates/.github/workflows/ci-master-pr.yml.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
'@
3737

3838
# Group variants by the package version
39-
$groups = $VARIANTS | Group-Object -Property { $_['_metadata']['package_version'] } | Sort-Object -Property Name -Descending
39+
$groups = $VARIANTS | Group-Object -Property { $_['_metadata']['package_version'] } | Sort-Object -Property { [version]$_.Name } -Descending
4040
$WORKFLOW_JOB_NAMES = $groups | % { "build-$( $_.Name.Replace('.', '-') )" }
4141
foreach ($g in $groups) {
4242
@"

0 commit comments

Comments
 (0)