Updates build action, to only commit when something has changed
This commit is contained in:
5
.github/workflows/build-template.yml
vendored
5
.github/workflows/build-template.yml
vendored
@@ -38,5 +38,10 @@ jobs:
|
||||
git config --global user.name "Liss-Bot"
|
||||
git config --global user.email "alicia-gh-bot@mail.as93.net"
|
||||
git add .
|
||||
if git diff --staged --quiet; then
|
||||
echo "Nothin new added, so nothing to commit, exiting..."
|
||||
exit 0
|
||||
else
|
||||
git commit -m "Updates templates (auto-generated, on ${{ steps.date.outputs.date }})"
|
||||
git push
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user