Download translation files from Localazy #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: Copyright 2025 New Vector Ltd. | |
| # | |
| # SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial | |
| name: Download translation files from Localazy | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| download: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup-node | |
| - name: Download translations from Localazy | |
| run: pnpm i18n:download | |
| - name: Compile the downloaded translations | |
| run: pnpm i18n:compile | |
| - name: Create Pull Request | |
| id: cpr | |
| uses: peter-evans/[email protected] | |
| with: | |
| sign-commits: true | |
| token: ${{ secrets.BOT_GITHUB_TOKEN }} | |
| branch-token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: actions/localazy-download | |
| delete-branch: true | |
| title: Translations updates | |
| labels: | | |
| T-Task | |
| A-I18n | |
| commit-message: Translations updates | |
| - name: Enable automerge | |
| run: gh pr merge --merge --auto "$PR_NUMBER" | |
| if: steps.cpr.outputs.pull-request-operation == 'created' | |
| env: | |
| GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ steps.cpr.outputs.pull-request-number }} |