Update daily_README.yaml

This commit is contained in:
Alexandre
2022-12-02 06:12:39 +01:00
committed by GitHub
parent fc3c0d8ab5
commit a0591817f9

View File

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