diff --git a/.github/workflows/l10n.yml b/.github/workflows/l10n.yml index f72ca747..49a9ade0 100644 --- a/.github/workflows/l10n.yml +++ b/.github/workflows/l10n.yml @@ -5,6 +5,7 @@ on: - main permissions: contents: write + pull-requests: write jobs: l10n: runs-on: ubuntu-latest @@ -39,14 +40,16 @@ jobs: name: Commit changes with: commit_message: "chore(l10n): update pot files" - - name: Crowdin Sync + - name: Sync with Crowdin uses: crowdin/github-action@v2 with: upload_sources: true upload_translations: false download_translations: true + export_only_approved: true create_pull_request: true config: crowdin.yml env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} diff --git a/crowdin.yml b/crowdin.yml index 049cf104..94f46249 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,3 +1,5 @@ +project_id_env: CROWDIN_PROJECT_ID +api_token_env: CROWDIN_PERSONAL_TOKEN commit_message: 'Update translations (%language%) %original_file_name%' pull_request_title: 'l10n: update translations' files: