diff --git a/.github/workflows/export-mongodb.yml b/.github/workflows/export-mongodb.yml
index a91a88351887d6dadf721724b47db697daf66bbb..2aa5a497b027c22bb680f622cc02a7f9c8d7def8 100644
--- a/.github/workflows/export-mongodb.yml
+++ b/.github/workflows/export-mongodb.yml
@@ -39,9 +39,15 @@ jobs:
           git config --global user.name 'github-actions[bot]'
           git config --global user.email 'github-actions[bot]@users.noreply.github.com'
 
+      - name: Check for changes
+        id: git_diff
+        run: |
+            git add exports/*.json
+            git diff-index --quiet HEAD || echo "changes"
+
       - name: Commit and push changes
+        if: steps.git_diff.outputs.changes == 'changes'
         run: |
-          git add gendercomics/*.json
           git commit -m "Export MongoDB collections as JSON files"
           git push
         env: