mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02: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
|
# Make sure file exists
|
||||||
file=Stats
|
file=Stats
|
||||||
touch "$file"
|
touch "$file"
|
||||||
|
rm "$file"2
|
||||||
if ! grep -q "Date" "$file"; then
|
if ! grep -q "Date" "$file"; then
|
||||||
sed -i "1i Date" "$file"
|
sed -i "1i Date" "$file"
|
||||||
fi
|
fi
|
||||||
@@ -84,8 +85,8 @@ jobs:
|
|||||||
# Sort file
|
# Sort file
|
||||||
(head -n 2 "$file" && tail -n +3 "$file" | sort -k1 -r -n) > tmp && mv tmp "$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 "1i Name Total armv7 amd64 aarch64" "$file"2
|
||||||
sed -i "1a ------------------------------" "Stats2"
|
sed -i "1a ------------------------------" "$file"2
|
||||||
#TOTAL="$(awk '{SUM+=$2}END{print SUM}' Stats)"
|
#TOTAL="$(awk '{SUM+=$2}END{print SUM}' Stats)"
|
||||||
#TOTAL1="$(awk '{SUM+=$2}END{print SUM}' Stats)"
|
#TOTAL1="$(awk '{SUM+=$2}END{print SUM}' Stats)"
|
||||||
#TOTAL2="$(awk '{SUM+=$2}END{print SUM}' Stats)"
|
#TOTAL2="$(awk '{SUM+=$2}END{print SUM}' Stats)"
|
||||||
|
|||||||
Reference in New Issue
Block a user