mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update weekly_stats.yaml
This commit is contained in:
16
.github/workflows/weekly_stats.yaml
vendored
16
.github/workflows/weekly_stats.yaml
vendored
@@ -186,6 +186,22 @@ jobs:
|
||||
print str
|
||||
}
|
||||
}' Stats3 > StatsTmp && mv StatsTmp Stats3
|
||||
# Add download count to names
|
||||
build_list="(head -n 1 Stats3)"
|
||||
build_list=($build_list)
|
||||
# shellcheck disable=SC2013
|
||||
for var in "${build_list[@]:1}"; do
|
||||
i=0
|
||||
j=0
|
||||
k=0
|
||||
# shellcheck disable=SC2013
|
||||
for i in $(sed -n "/${var^}/p" Stats); do
|
||||
k="$((k+1))"
|
||||
if [ "$k" -eq 3 ]; then break; fi
|
||||
if [ "$i" -eq "$i" ] && [ "$i" -gt "$j" ]; then j="$i"; fi
|
||||
done
|
||||
sed -i "s|${var^}|${var^} (${j}x)|g" Stats3
|
||||
done
|
||||
echo "... done"
|
||||
# Plot graph
|
||||
( gnuplot-nox -persist <<-EOFMarker
|
||||
|
||||
Reference in New Issue
Block a user