diff --git a/.github/workflows/sync_i18n.yml b/.github/workflows/sync_i18n.yml index f46461d2e9..3cf85041c0 100644 --- a/.github/workflows/sync_i18n.yml +++ b/.github/workflows/sync_i18n.yml @@ -2,11 +2,8 @@ name: Check and Fix Missing Translation Keys on: push: - branches: - - '**' - pull_request: - branches: - - main + branches-ignore: + - master jobs: check-translation-keys: @@ -15,6 +12,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + fetch-depth: 0 # Ensure full Git history is fetched + ref: ${{ github.ref }} # Checkout the branch that triggered the workflow - name: Set up Python uses: actions/setup-python@v4 @@ -35,7 +35,7 @@ jobs: git config user.email "action@github.com" git add apps/keira/src/assets/i18n/*.json git commit -m "Fix missing translation keys" - git push + git push origin HEAD else echo "No missing keys detected." fi