mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update daily_README.yaml
This commit is contained in:
10
.github/workflows/daily_README.yaml
vendored
10
.github/workflows/daily_README.yaml
vendored
@@ -44,6 +44,7 @@ jobs:
|
|||||||
# Init
|
# Init
|
||||||
|
|
||||||
echo "Starting"
|
echo "Starting"
|
||||||
|
NUMBERADDONS=0
|
||||||
|
|
||||||
# Prepare template
|
# Prepare template
|
||||||
|
|
||||||
@@ -75,6 +76,8 @@ jobs:
|
|||||||
|
|
||||||
echo "Project $f"
|
echo "Project $f"
|
||||||
|
|
||||||
|
NUMBERADDONS="$((NUMBERADDONS + 1))"
|
||||||
|
|
||||||
# Get variables
|
# Get variables
|
||||||
if [ -f "$f/oldname" ]; then FOLDERNAME="$(cat "$f/oldname")"; else FOLDERNAME="$f"; fi
|
if [ -f "$f/oldname" ]; then FOLDERNAME="$(cat "$f/oldname")"; else FOLDERNAME="$f"; fi
|
||||||
NAME="$(jq -r '.name' "$f/config.json")"
|
NAME="$(jq -r '.name' "$f/config.json")"
|
||||||
@@ -123,6 +126,13 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
done
|
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
|
# Replace template if change
|
||||||
|
|
||||||
echo "Replace template"
|
echo "Replace template"
|
||||||
|
|||||||
Reference in New Issue
Block a user