mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-17 18:08:16 +01:00
Update daily_README.yaml
This commit is contained in:
6
.github/workflows/daily_README.yaml
vendored
6
.github/workflows/daily_README.yaml
vendored
@@ -44,7 +44,6 @@ jobs:
|
||||
# Init
|
||||
|
||||
echo "Starting"
|
||||
NUMBERADDONS=0
|
||||
|
||||
# Prepare template
|
||||
|
||||
@@ -75,7 +74,6 @@ jobs:
|
||||
if [ -f "$f/config.json" ]; then
|
||||
|
||||
echo "Project $f"
|
||||
NUMBERADDONS="$((NUMBERADDONS + 1))"
|
||||
|
||||
# Get variables
|
||||
if [ -f "$f/oldname" ]; then FOLDERNAME="$(cat "$f/oldname")"; else FOLDERNAME="$f"; fi
|
||||
@@ -125,9 +123,9 @@ jobs:
|
||||
fi
|
||||
done
|
||||
|
||||
# Write stats
|
||||
# Write stats
|
||||
sed -i "s|%%STATS_DOWNLOADS%%|$(cat Stats | awk 'NR==2{print $1}')|g" README2.md
|
||||
sed -i "s|%%STATS_ADDONS%%|$NUMBERADDONS|g" README2.md
|
||||
sed -i "s|%%STATS_ADDONS%%|$(find . -name "config.json" | wc -l)|g" README2.md
|
||||
STATS_ONE="$(cat Stats | awk 'NR==3{print $(NF)}')"
|
||||
STATS_TWO="$(cat Stats | awk 'NR==4{print $(NF)}')"
|
||||
STATS_THREE="$(cat Stats | awk 'NR==5{print $(NF)}')"
|
||||
|
||||
Reference in New Issue
Block a user