mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 01:18:19 +01:00
Update daily_README.yaml
This commit is contained in:
12
.github/workflows/daily_README.yaml
vendored
12
.github/workflows/daily_README.yaml
vendored
@@ -21,12 +21,20 @@ jobs:
|
||||
# Go through all folders, add to filters if not existing
|
||||
for f in $( find -- * -maxdepth 0 -type d | sort -r ); do
|
||||
if [ -f "$f"/config.json ]; then
|
||||
if ! grep "$f" ".github/paths-filter.yml"; then
|
||||
|
||||
# Add to file
|
||||
if ! grep "$f:" ".github/paths-filter.yml"; then
|
||||
echo "$f: $f/config.*" >> ".github/paths-filter.yml"
|
||||
fi
|
||||
|
||||
# Identify addons with true images
|
||||
if [ "$(jq '.image' "$f/config.json")" != null ]; then
|
||||
sed "/$f:/ s/$/ # Image : $(jq '.image' "$f/config.json")/" ".github/paths-filter.yml"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
||||
# Sort yaml
|
||||
sort -t= ".github/paths-filter.yml" -o ".github/paths-filter.yml"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user