mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update weekly_stats.yaml
This commit is contained in:
5
.github/workflows/weekly_stats.yaml
vendored
5
.github/workflows/weekly_stats.yaml
vendored
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user