Skip to content

Commit e8f60ba

Browse files
authored
fix(ci): semver sorting (#11)
1 parent 0750877 commit e8f60ba

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/sync.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
-H 'Accept: application/vnd.github+json' \
2424
-H 'X-GitHub-Api-Version: 2022-11-28' \
2525
'https://api.github.com/repos/gorhill/ublock/tags' | \
26-
jq -r '[.[].name | select(test("^[0-9]"))] | sort_by(.) | last')"
26+
jq -r '[.[].name | select(test("^[0-9]"))] | .[]' | \
27+
sort -rV | \
28+
head -1)"
2729
if [[ "$UPSTREAM_TAG" == 'null' ]]; then
2830
echo "ERROR: Failed to retrieve upstream version!"
2931
exit 1

0 commit comments

Comments
 (0)