crowdin-download.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: Crowdin / Download translations
  2. on:
  3. schedule:
  4. - cron: "27 4 */7 * *" # Every week
  5. workflow_dispatch:
  6. permissions:
  7. contents: write
  8. pull-requests: write
  9. jobs:
  10. download-translations:
  11. runs-on: ubuntu-latest
  12. if: github.repository == 'mastodon/joinmastodon'
  13. steps:
  14. - name: Checkout
  15. uses: actions/checkout@v4
  16. # Download the translation files from Crowdin
  17. - name: crowdin action
  18. uses: crowdin/github-action@v2
  19. with:
  20. upload_sources: false
  21. upload_translations: false
  22. download_translations: true
  23. crowdin_branch_name: main
  24. push_translations: true
  25. create_pull_request: true
  26. localization_branch_name: i18n_crowdin_translations
  27. pull_request_base_branch_name: main
  28. pull_request_title: "New Crowdin translations (automated)"
  29. pull_request_body: |
  30. New Crowdin translations, automated with Github Actions
  31. See `.github/workflows/crowdin-download.yml`
  32. This PR will be updated every day with new translations.
  33. pull_request_labels: "i18n"
  34. env:
  35. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  36. CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }}
  37. CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}