fix github action

early exit when there are no changes
This commit is contained in:
Aylur
2024-09-04 23:38:51 +02:00
parent 3f8ed341bc
commit 44e0b9e736
+2 -4
View File
@@ -50,11 +50,9 @@ jobs:
run: |
cd dist
git add .
if git diff --cached --quiet; then
echo "No changes to commit."
if [ -n "$(git diff --cached)" ]; then
echo "No Changes Found"
exit 0
else
echo "Changes detected, proceeding with commit."
fi
- name: Push to Pages Repo