mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-25 15:30:32 +02:00
Update daily_README.yaml
This commit is contained in:
18
.github/workflows/daily_README.yaml
vendored
18
.github/workflows/daily_README.yaml
vendored
@@ -25,6 +25,9 @@ jobs:
|
|||||||
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
|
||||||
|
|
||||||
|
# Clean variable
|
||||||
|
OPENISSUES=""
|
||||||
|
|
||||||
# Add to file
|
# Add to file
|
||||||
if ! grep "$f:" ".github/paths-filter.yml"; then
|
if ! grep "$f:" ".github/paths-filter.yml"; then
|
||||||
echo "$f: $f/config.*" >> ".github/paths-filter.yml"
|
echo "$f: $f/config.*" >> ".github/paths-filter.yml"
|
||||||
@@ -36,21 +39,24 @@ jobs:
|
|||||||
sed -i "/$f/ s/$/ # Image : yes/" ".github/paths-filter.yml"
|
sed -i "/$f/ s/$/ # Image : yes/" ".github/paths-filter.yml"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Clean previously reported issues
|
||||||
|
find "$f"/*.md | xargs sed -i "/Open Issues :/d"
|
||||||
|
|
||||||
# If there is an issue with the addon name in title, put a message
|
# If there is an issue with the addon name in title, put a message
|
||||||
OPENISSUES=$(sed -n "/Title.*$f/I p" issueslist)
|
OPENISSUES=$(sed -n "/Title.*$f/I p" issueslist)
|
||||||
if [ "$OPENISSUES" != "" ]; then
|
if [ "$OPENISSUES" != "" ]; then
|
||||||
for item in ${OPENISSUES//\\n/ }
|
while read -r line
|
||||||
do
|
do
|
||||||
[ -f "$f"/README.md ] && sed -i "1a Open Issue : $item" "$f/README.md"
|
find "$f"/*.md | xargs sed -i "1i Open Issue : $line"
|
||||||
[ -f "$f"/Readme.md ] && sed -i "1a Open Issue : $item" "$f/Readme.md"
|
done <<< "$OPENISSUES"
|
||||||
done
|
|
||||||
else
|
|
||||||
sed -i "/Open Issues :/d" "$f/Readme.md" || sed -i "/Open Issues :/d" "$f/README.md"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Remove issues list
|
||||||
|
rm issueslist
|
||||||
|
|
||||||
# Sort yaml
|
# Sort yaml
|
||||||
sort -t= ".github/paths-filter.yml" -o ".github/paths-filter.yml"
|
sort -t= ".github/paths-filter.yml" -o ".github/paths-filter.yml"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user