crowdin-upload.yml 999 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Crowdin / Upload translations
  2. on:
  3. push:
  4. branches:
  5. - 'main'
  6. - 'stable-*'
  7. paths:
  8. - crowdin.yml
  9. - app/javascript/mastodon/locales/en.json
  10. - config/locales/en.yml
  11. - config/locales/simple_form.en.yml
  12. - config/locales/activerecord.en.yml
  13. - config/locales/devise.en.yml
  14. - config/locales/doorkeeper.en.yml
  15. - .github/workflows/crowdin-upload.yml
  16. jobs:
  17. upload-translations:
  18. runs-on: ubuntu-latest
  19. if: github.repository == 'mastodon/mastodon'
  20. steps:
  21. - name: Checkout
  22. uses: actions/checkout@v4
  23. - name: crowdin action
  24. uses: crowdin/github-action@v2
  25. with:
  26. upload_sources: true
  27. upload_translations: false
  28. download_translations: false
  29. crowdin_branch_name: ${{ github.base_ref || github.ref_name }}
  30. env:
  31. CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }}
  32. CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}