diff options
author | Aylur <[email protected]> | 2024-09-05 01:12:46 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-05 01:12:46 +0200 |
commit | 539a6b4cc1976aafd395e29450da83a17a73a6e0 (patch) | |
tree | ae89070a6cc2ff20b8b875b29fcd117ec8a8f5b5 | |
parent | c9c7ba41985b8b65f0202428b854091b15a0d779 (diff) |
fix: github action
only push if there are changes
-rw-r--r-- | .github/workflows/gi-docs.yml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/.github/workflows/gi-docs.yml b/.github/workflows/gi-docs.yml index 8d8f7f8..48bb05f 100644 --- a/.github/workflows/gi-docs.yml +++ b/.github/workflows/gi-docs.yml @@ -49,14 +49,12 @@ jobs: - name: Check for Changes run: | cd dist - git add . - if [ -n "$(git diff --cached)" ]; then - echo "No Changes Found" - exit 0 - fi - name: Push to Pages Repo run: | cd dist - git commit -m "Deployed from https://github.com/${{ github.repository }}/commit/${{ github.sha }}" - git push origin main + git add . + if [ -n "$(git diff --cached)" ]; then + git commit -m "Deployed from https://github.com/${{ github.repository }}/commit/${{ github.sha }}" + git push origin main + fi |