RetroArch/.github/workflows/crowdin.yml

38 lines
760 B
YAML
Raw Normal View History

2020-07-16 12:09:27 +00:00
# Upload sources to Crowdin for translation
name: Crowdin Workflow
on:
push:
branches:
- master
paths:
- 'intl/*_us.h'
- 'intl/*_us.json'
permissions:
contents: read
2020-07-16 12:09:27 +00:00
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Setup Java JDK
uses: actions/setup-java@v3
2020-07-16 12:09:27 +00:00
with:
java-version: 18
distribution: zulu
2020-07-16 12:09:27 +00:00
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
2020-07-16 12:09:27 +00:00
- name: Checkout
uses: actions/checkout@v3
2020-07-16 12:09:27 +00:00
- name: Crowdin Sync
shell: bash
env:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
2020-07-16 12:09:27 +00:00
run: |
cd intl
python3 crowdin_sync.py "$CROWDIN_API_KEY"