diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml
index d840181..696fe62 100644
--- a/.github/workflows/generate.yml
+++ b/.github/workflows/generate.yml
@@ -36,6 +36,7 @@ jobs:
 
       - name: Push Changes
         uses: stefanzweifel/git-auto-commit-action@v4
+        if: ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }}
         with:
           commit_message: "chore: generate health files"
           commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"