Translation Sync #3773
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
| name: Translation Sync | |
| on: | |
| schedule: | |
| - cron: '*/10 * * * *' | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'config/repos.yml' | |
| - 'translations/**' | |
| jobs: | |
| sync: | |
| name: Sync translations | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup UV | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "latest" | |
| - name: Setup Git | |
| run: | | |
| git config --global user.name "GuizhanBot" | |
| git config --global user.email "${{ secrets.BOT_EMAIL }}" | |
| - name: Pull source translations | |
| working-directory: script | |
| run: uv run script pull_sources | |
| env: | |
| BOT_TOKEN: ${{ secrets.BOT_TOKEN }} | |