code.gitea.io/gitea@v1.21.7/.github/workflows/cron-translations.yml (about) 1 name: cron-translations 2 3 on: 4 schedule: 5 - cron: "7 0 * * *" # every day at 00:07 UTC 6 workflow_dispatch: 7 8 jobs: 9 crowdin-pull: 10 runs-on: ubuntu-latest 11 if: github.repository == 'go-gitea/gitea' 12 steps: 13 - uses: actions/checkout@v4 14 - name: download from crowdin 15 uses: docker://jonasfranz/crowdin 16 env: 17 CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }} 18 PLUGIN_DOWNLOAD: true 19 PLUGIN_EXPORT_DIR: options/locale/ 20 PLUGIN_IGNORE_BRANCH: true 21 PLUGIN_PROJECT_IDENTIFIER: gitea 22 - name: update locales 23 run: ./build/update-locales.sh 24 - name: push translations to repo 25 uses: appleboy/git-push-action@v0.0.2 26 with: 27 author_email: "teabot@gitea.io" 28 author_name: GiteaBot 29 branch: main 30 commit: true 31 commit_message: "[skip ci] Updated translations via Crowdin" 32 remote: "git@github.com:go-gitea/gitea.git" 33 ssh_key: ${{ secrets.DEPLOY_KEY }} 34 crowdin-push: 35 runs-on: ubuntu-latest 36 if: github.repository == 'go-gitea/gitea' 37 steps: 38 - uses: actions/checkout@v4 39 - name: push translations to crowdin 40 uses: docker://jonasfranz/crowdin 41 env: 42 CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }} 43 PLUGIN_UPLOAD: true 44 PLUGIN_EXPORT_DIR: options/locale/ 45 PLUGIN_IGNORE_BRANCH: true 46 PLUGIN_PROJECT_IDENTIFIER: gitea 47 PLUGIN_FILES: | 48 locale_en-US.ini: options/locale/locale_en-US.ini 49 PLUGIN_BRANCH: main