.github/workflows/sync.yml #5476
This file contains 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
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" |