Updates build action, to only commit when something has changed
This commit is contained in:
9
.github/workflows/build-template.yml
vendored
9
.github/workflows/build-template.yml
vendored
@@ -38,5 +38,10 @@ jobs:
|
|||||||
git config --global user.name "Liss-Bot"
|
git config --global user.name "Liss-Bot"
|
||||||
git config --global user.email "alicia-gh-bot@mail.as93.net"
|
git config --global user.email "alicia-gh-bot@mail.as93.net"
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Updates templates (auto-generated, on ${{ steps.date.outputs.date }})"
|
if git diff --staged --quiet; then
|
||||||
git push
|
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