From 09a79592fae14285ec20ed77293e43c4ad310ac4 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 20 Apr 2022 20:36:15 +0200 Subject: [PATCH] Update weekly_README.yaml --- .github/workflows/weekly_README.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/weekly_README.yaml b/.github/workflows/weekly_README.yaml index 6bfcfc366..f83931ff1 100644 --- a/.github/workflows/weekly_README.yaml +++ b/.github/workflows/weekly_README.yaml @@ -19,7 +19,7 @@ jobs: cp .README.j2 README.md ADDONSLINE=$(sed -n '/%%ADDONS_LIST%%/=' README.md) sed -i "/**ADDONS_LIST%%/d" README.md - for f in *; do + for f in $( ls | sort -n ); do # $f is an addon directory if [ -f "$f"/config.json ]; then echo "Project $f" @@ -31,7 +31,7 @@ jobs: sed -i "$ADDONSLINE"'a ![Version](https://img.shields.io/badge/dynamic/json?label=Version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Falexbelgium%2Fhassio-addons%2Fmaster%2F'"$f"'%2Fconfig.json)' README.md || true NAME=$(jq -r '.name' $f/config.json) DESCRIPTION=$(jq -r '.description' $f/config.json) - sed -i "$ADDONSLINE"'a ✓ ['"$NAME"']('"$f"'/) : '"$Description \\n" README.md + sed -i "$ADDONSLINE"'a ✓ ['"$NAME"']('"$f"'/) : '"$DESCRIPTION \\n" README.md fi done shell: bash