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.
28 lines
838 B
28 lines
838 B
name: Crowdin Upload Sources Action
|
|
|
|
on:
|
|
push: # Watch source en.json for changes on main
|
|
paths: [ '/src/i18n/locales/en.json' ]
|
|
branches: [ main ]
|
|
workflow_dispatch: # Allow manual triggering
|
|
|
|
jobs:
|
|
synchronize-with-crowdin:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Upload sources with Crowdin
|
|
uses: crowdin/github-action@v2
|
|
with:
|
|
base_url: 'https://meshtastic.crowdin.com/api/v2'
|
|
config: 'crowdin.yml'
|
|
upload_sources: true
|
|
upload_translations: false
|
|
download_translations: false
|
|
crowdin_branch_name: 'main'
|
|
env:
|
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|