Skip to content

.github/workflows/sync.yml #5474

.github/workflows/sync.yml

.github/workflows/sync.yml #5474

Workflow file for this run

on:
schedule:
- cron: 0 * * * *
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
pip install crowdin-api-client
- run: |
python scripts/sync_translations.py ${{secrets.CROWDIN_API}}
- uses: fregante/setup-git-user@v2
- name: Sync translations
run: |
git add . && \
git commit -m "Sync translations from Crowdin" && \
git push || echo "No changes to commit"