From ed2f43ed4a634a83133d11f62c77010cc803fbff Mon Sep 17 00:00:00 2001 From: Enderson Menezes Date: Thu, 12 Sep 2024 13:32:29 -0300 Subject: [PATCH] Sync repositories and update README.md --- .github/workflows/sync-repositories.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/sync-repositories.yaml b/.github/workflows/sync-repositories.yaml index adccc15..10b94f3 100644 --- a/.github/workflows/sync-repositories.yaml +++ b/.github/workflows/sync-repositories.yaml @@ -77,5 +77,14 @@ jobs: # Commit and Push echo "Commit and Push..." git add . + + # Status Verify + STATUS=$(git diff --cached --shortstat) + if [ -z "$STATUS" ]; then + echo "No changes to commit" + exit 0 + fi + + # Commit and Push git commit -m "Sync Repository" git push origin main \ No newline at end of file