Skip to content

Commit 44e0b9e

Browse files
committed
fix github action
early exit when there are no changes
1 parent 3f8ed34 commit 44e0b9e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/gi-docs.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ jobs:
5050
run: |
5151
cd dist
5252
git add .
53-
if git diff --cached --quiet; then
54-
echo "No changes to commit."
53+
if [ -n "$(git diff --cached)" ]; then
54+
echo "No Changes Found"
5555
exit 0
56-
else
57-
echo "Changes detected, proceeding with commit."
5856
fi
5957
6058
- name: Push to Pages Repo

0 commit comments

Comments
 (0)