[Crowdin] Upload translations #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "[Crowdin] Upload translations" | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "packages/translation/src/lang/**" | |
branches: [dev] | |
jobs: | |
upload-crowdin-translations: | |
# Don't run this action if the downloaded translations are being pushed | |
if: "!contains(github.event.head_commit.message, 'chore(lang)')" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Upload Crowdin translations | |
uses: crowdin/github-action@v2 | |
with: | |
upload_sources: true | |
upload_translations: true | |
download_translations: false | |
env: | |
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | |
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |