Crowdin » Download translations #100
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: Crowdin » Download translations | |
| on: | |
| schedule: | |
| - cron: "0 5 * * 1" | |
| workflow_dispatch: | |
| jobs: | |
| download-translations: | |
| if: github.repository_owner == 'opencast' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Prepare git | |
| run: | | |
| git config --global user.email 'crowdin-bot@opencast.org' | |
| git config --global user.name 'Crowdin Bot' | |
| - name: Prepare crowdin client | |
| run: | | |
| wget --quiet https://artifacts.crowdin.com/repo/deb/crowdin3.deb -O crowdin.deb | |
| sudo dpkg -i crowdin.deb | |
| - name: Download translations | |
| env: | |
| CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }} | |
| run: | | |
| crowdin download --config .crowdin.yaml -b main | |
| - name: Add new translations | |
| run: | | |
| git add src/i18n/org/opencastproject/adminui/languages/ | |
| - name: Upload translations | |
| run: | | |
| if git commit -m "Automatically update translation keys"; then | |
| git push | |
| fi |