From 5c07e77e779e13ac489fd3d1459afaf4c4d0699a Mon Sep 17 00:00:00 2001 From: Jenifer Tabita Ciuciu-Kiss Date: Fri, 14 Jun 2024 02:13:01 +0200 Subject: [PATCH] dont fail if no changes --- .github/workflows/static.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 9b0c359..0004c2e 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -56,8 +56,12 @@ jobs: git config user.name github-actions git config user.email github-actions@github.com 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