mirror of
https://github.com/libretro/gambatte-libretro.git
synced 2024-12-04 06:03:28 +00:00
8c0ea08479
The Hebrew language was erroneously removed on Crowdin - right before the sync script ran. This lead to build errors, as some requires variables suddenly became undefined. This PR replaces these variables with dummies to enable building the core again.
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
# Download translations form Crowdin & Recreate libretro_core_options_intl.h
|
|
|
|
name: Crowdin Translation Integration
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '50 10 * * 5' # Friday at 10:50 AM, UTC
|
|
|
|
jobs:
|
|
create_intl_file:
|
|
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
|
|
with:
|
|
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
|
|
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
|
|
|
|
- name: Create intl file
|
|
shell: bash
|
|
env:
|
|
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
|
|
run: |
|
|
python3 intl/download_workflow.py $CROWDIN_API_KEY "gambatte-libretro" "libgambatte/libretro"
|
|
|
|
- name: Commit files
|
|
run: |
|
|
git config --local user.email "github-actions@github.com"
|
|
git config --local user.name "github-actions[bot]"
|
|
git add intl/download_workflow.py "libgambatte/libretro/libretro_core_options_intl.h"
|
|
git commit -m "Fetch translations & Recreate libretro_core_options_intl.h"
|
|
|
|
- name: GitHub Push
|
|
uses: ad-m/github-push-action@v0.6.0
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch: ${{ github.ref }}
|