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