From 77347c8e4b1929cdae363cb9a8fe98d1b5c3b0cd Mon Sep 17 00:00:00 2001 From: Foundation Platform Bot - Sync Repos Date: Thu, 12 Sep 2024 16:32:50 +0000 Subject: [PATCH] Sync Repository --- .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