mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-06 11:54:53 +01:00
Update daily_README.yaml
This commit is contained in:
29
.github/workflows/daily_README.yaml
vendored
29
.github/workflows/daily_README.yaml
vendored
@@ -35,7 +35,7 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Populate template
|
# Populate template
|
||||||
for f in $( find -- * -maxdepth 0 -type d | sort -r ); do
|
find -- * -maxdepth 0 -type d | sort -r | while read f; do
|
||||||
# $f is an addon directory
|
# $f is an addon directory
|
||||||
if [ -f "$f/config.json" ]; then
|
if [ -f "$f/config.json" ]; then
|
||||||
echo "Project $f"
|
echo "Project $f"
|
||||||
@@ -56,10 +56,10 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Restore folders name
|
# Restore folders name
|
||||||
for f in "$( find -- * -type d | sort -r )"; do
|
for f in */; do
|
||||||
if [ -f "${f}/oldname" ]; then
|
if [ -f "${f}oldname" ]; then
|
||||||
NAME="$(cat "${f}/oldname")"
|
NAME="$(cat "${f}oldname")"
|
||||||
rm "$f/oldname"
|
rm "$f"oldname"
|
||||||
mv "$f" "$NAME"
|
mv "$f" "$NAME"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -73,8 +73,19 @@ jobs:
|
|||||||
mv README2.md README.md
|
mv README2.md README.md
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Commit if needed
|
- name: Create New Pull Request If Needed
|
||||||
uses: EndBug/add-and-commit@v9
|
if: steps.calibre.outputs.markdown != ''
|
||||||
|
uses: peter-evans/create-pull-request@v4
|
||||||
with:
|
with:
|
||||||
message: "GitHub bot : README updated"
|
title: "Github bot : image compressed"
|
||||||
default_author: github_actions
|
branch-suffix: timestamp
|
||||||
|
commit-message: "Github bot : image compressed"
|
||||||
|
body: ${{ steps.calibre.outputs.markdown }}
|
||||||
|
|
||||||
|
#- name: Commit if needed
|
||||||
|
#uses: EndBug/add-and-commit@v9
|
||||||
|
#with:
|
||||||
|
# message: "GitHub bot : README updated"
|
||||||
|
# default_author: github_actions
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user