summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-09-04 23:38:51 +0200
committerAylur <[email protected]>2024-09-04 23:38:51 +0200
commit44e0b9e736d0152d705d539a4e533852bfb1eaa7 (patch)
tree83916d14391bd7bb1a16c7483b3fdb5ba09f1d66
parent3f8ed341bc6efd308344dd9d27247d497b20176c (diff)
fix github action
early exit when there are no changes
-rw-r--r--.github/workflows/gi-docs.yml6
1 files changed, 2 insertions, 4 deletions
diff --git a/.github/workflows/gi-docs.yml b/.github/workflows/gi-docs.yml
index 774e2c1..8d8f7f8 100644
--- a/.github/workflows/gi-docs.yml
+++ b/.github/workflows/gi-docs.yml
@@ -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