From 96575c516ee460dfb1311135df8fb04e1fd3bb83 Mon Sep 17 00:00:00 2001 From: rushiiMachine <33725716+rushiiMachine@users.noreply.github.com> Date: Sat, 17 May 2025 12:57:19 -0700 Subject: [PATCH] feat(ci): use main branch for crowdin sync --- .github/workflows/crowdin.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index 67030c9..51b6091 100644 --- a/.github/workflows/crowdin.yml +++ b/.github/workflows/crowdin.yml @@ -5,35 +5,28 @@ on: - cron: "0 17 * * 6" # "At 17:00 on Saturday." workflow_dispatch: +permissions: + contents: write + jobs: sync-crowdin: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - with: - persist-credentials: true - name: Crowdin - uses: crowdin/github-action@1.4.11 + uses: crowdin/github-action@v2 with: config: crowdin.yml + upload_sources: true upload_translations: true download_translations: true push_translations: true + localization_branch_name: main create_pull_request: false - localization_branch_name: l10n commit_message: 'chore(l10n): sync translations' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_ID }} CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_TOKEN }} - - - name: Merge - run: | - sudo chmod -R ugo+rwX . - git checkout main - git add * - git merge l10n - git push - git push origin --delete l10n || true