mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-24 00:06:04 +02:00
Update daily_README.yaml
This commit is contained in:
2
.github/workflows/daily_README.yaml
vendored
2
.github/workflows/daily_README.yaml
vendored
@@ -50,6 +50,7 @@ jobs:
|
|||||||
# Go through all folders, add to filters if not existing
|
# Go through all folders, add to filters if not existing
|
||||||
for f in $( find -- * -maxdepth 0 -type d | sort -r ); do
|
for f in $( find -- * -maxdepth 0 -type d | sort -r ); do
|
||||||
if [ -f "$f"/config.json ]; then
|
if [ -f "$f"/config.json ]; then
|
||||||
|
SLUG=$(jq -r '.image' "$f/config.json" | awk -F 'alexbelgium/|-{arch' '{print $2}')
|
||||||
if [[ $(jq '.arch[]' "$f/config.json") == *"armv7"* ]]; then
|
if [[ $(jq '.arch[]' "$f/config.json") == *"armv7"* ]]; then
|
||||||
ARCH=armv7 && 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}')"
|
ARCH=armv7 && 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}')"
|
||||||
if [ -z "$COUNT" ]; then echo "$(curl -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}')"; fi
|
if [ -z "$COUNT" ]; then echo "$(curl -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}')"; fi
|
||||||
@@ -131,7 +132,6 @@ jobs:
|
|||||||
if [ -f "$f/oldname" ]; then FOLDERNAME="$(cat "$f/oldname")"; else FOLDERNAME="$f"; fi
|
if [ -f "$f/oldname" ]; then FOLDERNAME="$(cat "$f/oldname")"; else FOLDERNAME="$f"; fi
|
||||||
NAME=$(jq -r '.name' "$f/config.json")
|
NAME=$(jq -r '.name' "$f/config.json")
|
||||||
DESCRIPTION=$(jq -r '.description' "$f/config.json")
|
DESCRIPTION=$(jq -r '.description' "$f/config.json")
|
||||||
SLUG=$(jq -r '.image' "$f/config.json" | awk -F 'alexbelgium/|-{arch' '{print $2}')
|
|
||||||
# Get icon
|
# Get icon
|
||||||
if [ "$(jq '.panel_icon' "$f/config.json")" != null ]; then
|
if [ "$(jq '.panel_icon' "$f/config.json")" != null ]; then
|
||||||
ICON="$(jq -r '.panel_icon' "$f/config.json")"
|
ICON="$(jq -r '.panel_icon' "$f/config.json")"
|
||||||
|
|||||||
Reference in New Issue
Block a user