Skip to content

Commit

Permalink
dont fail if no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenifer Tabita Ciuciu-Kiss committed Jun 14, 2024
1 parent d883fda commit 5c07e77
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ jobs:
git config user.name github-actions
git config user.email [email protected]
git add index.html
git commit -m "update index.html automatically"
git push
if git diff-index --quiet HEAD; then
echo "No changes to commit"
else
git commit -m "update index.html automatically"
git push
fi
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 5c07e77

Please sign in to comment.