Skip to content

Commit

Permalink
Sort tags better
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatskaari committed Nov 1, 2023
1 parent 789b15a commit 80c02e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/plugins/lint_plugin_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ URL_PREFIX="https://github.com/please-build/"

failed=0
for plugin in "${PLUGINS[@]}"; do
latest=$(git ls-remote --tags "${URL_PREFIX}""${plugin}"-rules.git | sed 's/.*\///' | sed '/^v[0-9]\+\.[0-9]\+\.[0-9]\+$/!d' | tail -n 1)
latest=$(git ls-remote --tags --sort=version:refname "${URL_PREFIX}""${plugin}"-rules.git | sed 's/.*\///' | sed '/^v[0-9]\+\.[0-9]\+\.[0-9]\+$/!d' | tail -n 1)
if [ -z "$latest" ]; then
echo "No tags found for ${plugin}"
exit 1
Expand Down

0 comments on commit 80c02e0

Please sign in to comment.