From a0591817f94baf1de3eef88332de87b0c5f9259e Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 2 Dec 2022 06:12:39 +0100 Subject: [PATCH] Update daily_README.yaml --- .github/workflows/daily_README.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/daily_README.yaml b/.github/workflows/daily_README.yaml index 577264b3b..595707a60 100644 --- a/.github/workflows/daily_README.yaml +++ b/.github/workflows/daily_README.yaml @@ -46,8 +46,6 @@ jobs: # Init echo "Starting" - DOWNLOADS=0 - # Prepare template cp .templates/.README.md README2.md ADDONSLINE=$(sed -n '/%%ADDONS_LIST%%/=' README2.md) @@ -84,6 +82,7 @@ jobs: ICON="" fi + DOWNLOADS=0 ARCH=amd64 && SLUG=$(jq -r '.image' "$f/config.json" | awk -F 'alexbelgium/|-{arch' '{print $2}') && \ COUNT="$(curl -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')" && \ DOWNLOADS=$(( $DOWNLOADS + $COUNT))