From 7e44ac3543286a262aea02dfbf21e0a9131ba1e4 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 20 Jan 2023 14:25:52 +0100 Subject: [PATCH] Update weekly_stats.yaml --- .github/workflows/weekly_stats.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/weekly_stats.yaml b/.github/workflows/weekly_stats.yaml index bcb183478..c4eec4091 100644 --- a/.github/workflows/weekly_stats.yaml +++ b/.github/workflows/weekly_stats.yaml @@ -34,6 +34,7 @@ jobs: # Go through all folders, add to filters if not existing # shellcheck disable=SC2086 for f in $( find -- * -maxdepth 0 -type d | sort -r ); do + echo "Look at $f" DOWNLOADS=0 if [ -f "$f"/config.json ]; then SLUG="$(jq -r '.image' "$f/config.json" | awk -F 'alexbelgium/|-{arch' '{print $2}')" @@ -110,17 +111,20 @@ jobs: uses: actions/checkout@v3 - name: Install apps run: | + echo "Install apps" sudo apt-get install gawk -y sudo apt-get install gnuplot-nox -y - name: Create global stats run: | # Prepare data + echo "Copy file" cp Stats Stats3 # Inverse file gawk -i inplace '{for(i=NF;i>1;i--)printf "%s ",$i;printf "%s",$1;print ""}' Stats3 # Only totals head -n 2 Stats3 > tmp_file && mv tmp_file Stats3 # Transpose data + echo "Transpose data" awk ' { for (i=1; i<=NF; i++) { @@ -139,6 +143,7 @@ jobs: }' Stats3 > StatsTmp && mv StatsTmp Stats3 sed -i "1d" Stats3 # Plot graph + echo "Create graph" gnuplot-nox -persist <<-EOFMarker set title 'Total addons' set ylabel 'Number of installations'