Skip to content

Commit

Permalink
ci(test): grab latest releases
Browse files Browse the repository at this point in the history
Since 1.10 was released this week, it wasn't sorting correctly and
grabbing that version. Change the sort method to sort by split semver
  • Loading branch information
mloberg committed Dec 3, 2024
1 parent 2afc59e commit 44cf516
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
minor: .semver.minor | tonumber,
patch: .semver.patch | tonumber
}
] | group_by(.group) | [ .[] | sort_by(.patch) | .[-1] | .version ] | sort | .[-2:]')" >> "$GITHUB_OUTPUT"
] | group_by(.group) | [ .[] | sort_by(.patch) | .[-1] | .version ] |
sort_by(.|split(".")|map(tonumber)) | .[-2:]')" >> "$GITHUB_OUTPUT"
outputs:
terraform: ${{ steps.versions.outputs.terraform }}

Expand Down

0 comments on commit 44cf516

Please sign in to comment.