Skip to content

New Crowdin translations by GitHub Action (#2098) #83

New Crowdin translations by GitHub Action (#2098)

New Crowdin translations by GitHub Action (#2098) #83

name: Crowdin upload
on:
push:
paths:
- 'custom_components/battery_notes/translations/*'
branches:
- "main"
workflow_dispatch:
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: crowdin action
uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: true
download_translations: false
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}