2023-07-18 16:56:01 +02:00
|
|
|
name: Crowdin / Upload translations
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-07-07 11:39:31 +02:00
|
|
|
- 'main'
|
|
|
|
- 'stable-*'
|
2023-07-18 16:56:01 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
upload-translations:
|
|
|
|
runs-on: ubuntu-latest
|
2024-07-29 19:19:05 +02:00
|
|
|
if: github.repository == 'mastodon/mastodon'
|
2023-07-18 16:56:01 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-11 10:41:26 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-07-18 16:56:01 +02:00
|
|
|
|
|
|
|
- name: crowdin action
|
2024-08-14 00:28:13 +02:00
|
|
|
uses: crowdin/github-action@v2
|
2023-07-18 16:56:01 +02:00
|
|
|
with:
|
|
|
|
upload_sources: true
|
|
|
|
upload_translations: false
|
|
|
|
download_translations: false
|
2024-09-30 19:32:23 +02:00
|
|
|
crowdin_branch_name: ${{ github.base_ref || github.ref_name }}
|
2023-07-18 16:56:01 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }}
|
|
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|