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))