diff --git a/.gitea/workflows/sync.yaml b/.gitea/workflows/sync.yaml
index b9a6ec9..d939e24 100644
--- a/.gitea/workflows/sync.yaml
+++ b/.gitea/workflows/sync.yaml
@@ -15,6 +15,8 @@ jobs:
     - ubuntu-latest
     steps:
     - uses: actions/checkout@v4.2.2
+      with:
+        fetch-depth: 0
     - name: Configure SSH client
       run: |
         mkdir ~/.ssh || true