You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1020 B
38 lines
1020 B
name: Crowdin / Upload translations |
|
|
|
on: |
|
push: |
|
branches: |
|
- 'main' |
|
- 'stable-*' |
|
paths: |
|
- crowdin.yml |
|
- app/javascript/mastodon/locales/en.json |
|
- config/locales/en.yml |
|
- config/locales/simple_form.en.yml |
|
- config/locales/activerecord.en.yml |
|
- config/locales/devise.en.yml |
|
- config/locales/doorkeeper.en.yml |
|
- .github/workflows/crowdin-upload.yml |
|
workflow_dispatch: |
|
|
|
jobs: |
|
upload-translations: |
|
runs-on: ubuntu-latest |
|
if: github.repository == 'mastodon/mastodon' |
|
|
|
steps: |
|
- name: Checkout |
|
uses: actions/checkout@v4 |
|
|
|
- name: crowdin action |
|
uses: crowdin/github-action@v2 |
|
with: |
|
upload_sources: true |
|
upload_translations: false |
|
download_translations: false |
|
crowdin_branch_name: ${{ github.base_ref || github.ref_name }} |
|
|
|
env: |
|
CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }} |
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
|
|