Update weekly_stats.yaml

This commit is contained in:
Alexandre
2022-12-14 08:26:57 +01:00
committed by GitHub
parent 85d66bb565
commit 5c3a3f84a5

View File

@@ -21,6 +21,7 @@ jobs:
# Make sure file exists
file=Stats
touch "$file"
rm "$file"2
if ! grep -q "Date" "$file"; then
sed -i "1i Date" "$file"
fi
@@ -84,8 +85,8 @@ jobs:
# Sort file
(head -n 2 "$file" && tail -n +3 "$file" | sort -k1 -r -n) > tmp && mv tmp "$file"
sed -i "1i Name Total armv7 amd64 aarch64" "Stats2"
sed -i "1a ------------------------------" "Stats2"
sed -i "1i Name Total armv7 amd64 aarch64" "$file"2
sed -i "1a ------------------------------" "$file"2
#TOTAL="$(awk '{SUM+=$2}END{print SUM}' Stats)"
#TOTAL1="$(awk '{SUM+=$2}END{print SUM}' Stats)"
#TOTAL2="$(awk '{SUM+=$2}END{print SUM}' Stats)"