From 9cc1d23e03de671c08be8b2d897988926f596304 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 7 May 2022 23:37:23 +0200 Subject: [PATCH] Update daily_README.yaml --- .github/workflows/daily_README.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/daily_README.yaml b/.github/workflows/daily_README.yaml index abf1fc160..fbce3a16e 100644 --- a/.github/workflows/daily_README.yaml +++ b/.github/workflows/daily_README.yaml @@ -43,13 +43,15 @@ jobs: find "$f" -iname readme.md | xargs sed -i "/Open Issues :/d" # If there is an issue with the addon name in title, put a message - #OPENISSUES=$(sed -n "/Title.*$f/I p" issueslist) - #if [ "$OPENISSUES" != "" ]; then - # while read -r line - # do - # find "$f" -iname readme.md | xargs sed -i "1i Open Issue : $line" - # done <<< "$OPENISSUES" - #fi + OPENISSUES=$(sed -n "/\"Title\".*$f/I p" issueslist) + if [ "$OPENISSUES" != "" ]; then + while read -r line + do + line=${line#* \"} + line=${line::-n} + find "$f" -iname readme.md | xargs sed -i "1i Open Issue : [$line](https://github.com/alexbelgium/hassio-addons/issues)" + done <<< "$OPENISSUES" + fi fi done