Skip to content

Commit 295ff33

Browse files
committed
Check if changes exist or else echo
1 parent fa3debb commit 295ff33

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/deploy-main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,9 @@ jobs:
4646
run: |
4747
cd gh-pages
4848
git add .
49-
git commit -m "Deploy main branch to demo"
50-
git push origin gh-pages
49+
if [ -n "$(git status --porcelain)" ]; then
50+
git commit -m "Deploy main branch to demo"
51+
git push origin gh-pages
52+
else
53+
echo "No changes to commit"
54+
fi

0 commit comments

Comments
 (0)