diff --git a/.github/.i18n-trigger b/.github/.i18n-trigger index e28684cf8c..bcee27611a 100644 --- a/.github/.i18n-trigger +++ b/.github/.i18n-trigger @@ -1,6 +1,6 @@ # This file is used to trigger the i18n workflow # See .github/workflows/i18n-update-core.yaml -# +# # The workflow will automatically: # 1. Collect i18n strings from the UI # 2. Generate translations using OpenAI @@ -8,3 +8,5 @@ # # This trigger was created to fix missing subscription.* translations # that were added after the last automatic locale update. +# +# Re-triggering after fixing git commit workflow issue (2025-11-10) diff --git a/.github/workflows/i18n-update-core.yaml b/.github/workflows/i18n-update-core.yaml index 8a20af4c0e..a467634b7f 100644 --- a/.github/workflows/i18n-update-core.yaml +++ b/.github/workflows/i18n-update-core.yaml @@ -48,12 +48,10 @@ jobs: run: | git config --global user.name 'github-actions' git config --global user.email 'github-actions@github.com' - git fetch origin ${{ github.head_ref }} - # Stash any local changes before checkout - git stash -u - git checkout -B ${{ github.head_ref }} origin/${{ github.head_ref }} - # Apply the stashed changes if any - git stash pop || true git add src/locales/ - git diff --staged --quiet || git commit -m "Update locales" - git push origin HEAD:${{ github.head_ref }} + if ! git diff --staged --quiet; then + git commit -m "Update locales" + git push origin HEAD:${{ github.head_ref }} + else + echo "No locale changes to commit" + fi