This commit is contained in:
Alexandre
2023-03-23 11:01:48 +01:00
parent e46ee551cb
commit 4cd54b82d6

View File

@@ -68,7 +68,7 @@ jobs:
echo "... done" echo "... done"
# Remove series with less than 4 points # Remove series with less than 4 points
sed -i "/^[0-9|-]* [0-9*|-]* [0-9*|-]* -/d" Stats3 sed -i "/^[0-9|-]* [0-9*|-]* [0-9*|-]* -/d" Stats3
# Plot graph # Plot graph
( gnuplot-nox -persist <<-EOFMarker ( gnuplot-nox -persist <<-EOFMarker
set title 'Top 10 addons' set title 'Top 10 addons'
set ylabel 'Number of installations' set ylabel 'Number of installations'
@@ -142,7 +142,7 @@ jobs:
}' StatsTmp > StatsTmp2 && mv StatsTmp2 StatsTmp }' StatsTmp > StatsTmp2 && mv StatsTmp2 StatsTmp
#Normalize data #Normalize data
#awk 'FNR==NR{max=($2+0>max)?$2:max;next} {print $1,$2/max}' StatsTmp StatsTmp #awk 'FNR==NR{max=($2+0>max)?$2:max;next} {print $1,$2/max}' StatsTmp StatsTmp
# Plot graph # Plot graph
( gnuplot-nox -persist <<-EOFMarker ( gnuplot-nox -persist <<-EOFMarker
set title "$TITLE" set title "$TITLE"
set ylabel 'Number of installations' set ylabel 'Number of installations'
@@ -226,11 +226,12 @@ jobs:
echo "Starting run" echo "Starting run"
# Get stars # Get stars
wget -S -O .github/stars.svg https://contrib.rocks/image?repo=alexbelgium/hassio-addons || true wget -S -O .github/stars.svg https://contrib.rocks/image?repo=alexbelgium/hassio-addons || true
# Get stars2 # Get stars2
wget -S -O .github/stars2.svg https://git-lister.onrender.com/api/stars/alexbelgium/hassio-addons?limit=30 || true wget -S -O .github/stars2.svg https://git-lister.onrender.com/api/stars/alexbelgium/hassio-addons?limit=30 || \
wget -S -O .github/stars2.svg https://git-lister.onrender.com/api/stars/alexbelgium/hassio-addons || \
wget -S -O .github/stars2.svg https://git-lister.onrender.com/api/stars/alexbelgium/hassio-addons?limit=31 || true
- name: Commit if needed - name: Commit if needed
uses: EndBug/add-and-commit@v9 uses: EndBug/add-and-commit@v9
with: with:
message: "GitHub bot : graphs updated" message: "GitHub bot : graphs updated"
default_author: github_actions default_author: github_actions