Update daily_README.yaml

This commit is contained in:
Alexandre
2022-12-12 10:46:22 +01:00
committed by GitHub
parent 9511975333
commit 36eccc6768

View File

@@ -44,6 +44,7 @@ jobs:
# Init
echo "Starting"
NUMBERADDONS=0
# Prepare template
@@ -75,6 +76,8 @@ jobs:
echo "Project $f"
NUMBERADDONS="$((NUMBERADDONS + 1))"
# Get variables
if [ -f "$f/oldname" ]; then FOLDERNAME="$(cat "$f/oldname")"; else FOLDERNAME="$f"; fi
NAME="$(jq -r '.name' "$f/config.json")"
@@ -123,6 +126,13 @@ jobs:
fi
done
# 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_ONE%%|$(cat Stats | awk 'NR==3{print $(NF)}')|g" README2.md
sed -i "s|%%STATS_TWO%%|$(cat Stats | awk 'NR==4{print $(NF)}')|g" README2.md
sed -i "s|%%STATS_THREE%%|$(cat Stats | awk 'NR==5{print $(NF)}')|g" README2.md
# Replace template if change
echo "Replace template"