mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-05 23:25:57 +02:00
Update daily_README.yaml
This commit is contained in:
19
.github/workflows/daily_README.yaml
vendored
19
.github/workflows/daily_README.yaml
vendored
@@ -13,7 +13,24 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Run script file
|
- name: Update path_filters
|
||||||
|
run: |
|
||||||
|
# Init
|
||||||
|
echo "Starting"
|
||||||
|
|
||||||
|
# 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 -Fxq "$f" ".github/paths-filter.yml"; then
|
||||||
|
echo "$f: $f/config.*" >> ".github/paths-filter.yml"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Sort yaml
|
||||||
|
diff -u <(grep name: ".github/paths-filter.yml") <(grep name: ".github/paths-filter.yml" | sort)
|
||||||
|
|
||||||
|
- name: Create README file
|
||||||
run: |
|
run: |
|
||||||
# Init
|
# Init
|
||||||
echo "Starting"
|
echo "Starting"
|
||||||
|
|||||||
Reference in New Issue
Block a user