code.gitea.io/gitea@v1.22.3/.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        - uses: crowdin/github-action@v1
    15          with:
    16            upload_sources: true
    17            upload_translations: false
    18            download_sources: false
    19            download_translations: true
    20            push_translations: false
    21            push_sources: false
    22            create_pull_request: false
    23            config: crowdin.yml
    24          env:
    25            CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
    26            CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }}
    27        - name: update locales
    28          run: ./build/update-locales.sh
    29        - name: push translations to repo
    30          uses: appleboy/git-push-action@v0.0.3
    31          with:
    32            author_email: "teabot@gitea.io"
    33            author_name: GiteaBot
    34            branch: main
    35            commit: true
    36            commit_message: "[skip ci] Updated translations via Crowdin"
    37            remote: "git@github.com:go-gitea/gitea.git"
    38            ssh_key: ${{ secrets.DEPLOY_KEY }}