gitea源码

cron-translations.yml 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: cron-translations
  2. on:
  3. schedule:
  4. - cron: "7 0 * * *" # every day at 00:07 UTC
  5. workflow_dispatch:
  6. jobs:
  7. crowdin-pull:
  8. runs-on: ubuntu-latest
  9. if: github.repository == 'go-gitea/gitea'
  10. steps:
  11. - uses: actions/checkout@v4
  12. - uses: crowdin/github-action@v1
  13. with:
  14. upload_sources: true
  15. upload_translations: false
  16. download_sources: false
  17. download_translations: true
  18. push_translations: false
  19. push_sources: false
  20. create_pull_request: false
  21. config: crowdin.yml
  22. env:
  23. CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
  24. CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }}
  25. - name: update locales
  26. run: ./build/update-locales.sh
  27. - name: push translations to repo
  28. uses: appleboy/git-push-action@v0.0.3
  29. with:
  30. author_email: "teabot@gitea.io"
  31. author_name: GiteaBot
  32. branch: main
  33. commit: true
  34. commit_message: "[skip ci] Updated translations via Crowdin"
  35. remote: "git@github.com:go-gitea/gitea.git"
  36. ssh_key: ${{ secrets.DEPLOY_KEY }}