mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
fix(snyk-report): Sort analyzed released, add master (#23250)
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
This commit is contained in:
@@ -8,15 +8,17 @@ function get_latest_minor_version_tags() {
|
||||
|
||||
git tag -l \
|
||||
| sed -E 's/(v[0-9]\.[0-9]+).*/\1/' \
|
||||
| sort -Vu \
|
||||
| tail -n "$count"
|
||||
| sort --version-sort --reverse --unique \
|
||||
| head -n "$count"
|
||||
}
|
||||
|
||||
function get_latest_patch_versions() {
|
||||
count=$1
|
||||
|
||||
echo "master"
|
||||
while read -r minor; do
|
||||
git tag -l | grep "^$minor" | sort -V | tail -n 1
|
||||
# For each minor release, find latest patch release tag
|
||||
git tag -l | grep "^$minor" | sort --version-sort | tail -n 1
|
||||
done < <(get_latest_minor_version_tags "$count")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user