Update daily_README.yaml

This commit is contained in:
Alexandre
2022-12-02 06:08:37 +01:00
committed by GitHub
parent 94d4e1a1bf
commit 06bff2cf2b

View File

@@ -85,13 +85,16 @@ jobs:
fi
ARCH=amd64 && SLUG=$(jq -r '.image' "$f/config.json" | awk -F 'alexbelgium/|-{arch' '{print $2}') && \
DOWNLOADS="$(curl -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')" && \
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))
echo "$DOWNLOADS amd64 users"
ARCH=armv7
DOWNLOADS="$(($DOWNLOADS + $(curl -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')))" && \
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))
echo "$DOWNLOADS amd64 users"
ARCH=aarch64
DOWNLOADS="$(($DOWNLOADS + $(curl -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')))" && \
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))
echo "$DOWNLOADS aarch64 users"
# Write infos