1
0

crowdin-upload.yml 892 B

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