mirror of
https://github.com/libretro/RetroArch
synced 2024-12-29 12:31:05 +00:00
648b0ab7b7
* (Bug fix) Fix the weird 'empty translations' & correct backslash escaping in translation strings * Update crowdin workflows GitHub is deprecating Node.js 12, so some actions need to be updated to ensure functionality into the future.
38 lines
760 B
YAML
38 lines
760 B
YAML
# Upload sources to Crowdin for translation
|
|
|
|
name: Crowdin Workflow
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'intl/*_us.h'
|
|
- 'intl/*_us.json'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Java JDK
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: 18
|
|
distribution: zulu
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Crowdin Sync
|
|
shell: bash
|
|
env:
|
|
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
|
|
run: |
|
|
cd intl
|
|
python3 crowdin_sync.py "$CROWDIN_API_KEY"
|