mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
Update daily_README.yaml
This commit is contained in:
6
.github/workflows/daily_README.yaml
vendored
6
.github/workflows/daily_README.yaml
vendored
@@ -21,14 +21,16 @@ jobs:
|
|||||||
# Go through all folders, add to filters if not existing
|
# Go through all folders, add to filters if not existing
|
||||||
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
|
||||||
if ! grep -Fxq "$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"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Sort yaml
|
# Sort yaml
|
||||||
diff -u <(grep name: ".github/paths-filter.yml") <(grep name: ".github/paths-filter.yml" | sort)
|
add-apt-repository ppa:rmescandon/yq
|
||||||
|
sudo apt-get install yq
|
||||||
|
yq 'sort_keys(.)' ".github/paths-filter.yml"
|
||||||
|
|
||||||
- name: Create README file
|
- name: Create README file
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user