Update daily_README.yaml

This commit is contained in:
Alexandre
2022-05-07 23:37:23 +02:00
committed by GitHub
parent 61d2c2e751
commit 9cc1d23e03

View File

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