Debian Codegraph @

.github/workflows/crowdin_translate.yml

raw symbols SCIP
1 # Download translations form Crowdin & Recreate libretro_core_options_intl.h
2
3 name: Crowdin Translation Integration
4
5 on:
6 schedule:
7 # please choose a random time & weekday to avoid all repos synching at the same time
8 - cron: '25 17 * * 5' # Fridays at 5:25 PM, UTC
9
10 jobs:
11 create_intl_file:
12 runs-on: ubuntu-latest
13 steps:
14 - name: Setup Java JDK
15 uses: actions/setup-java@v3
16 with:
17 java-version: 18
18 distribution: zulu
19
20 - name: Setup Python
21 uses: actions/setup-python@v4
22 with:
23 python-version: '3.10'
24
25 - name: Checkout
26 uses: actions/checkout@v3
27 with:
28 persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
29 fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
30
31 - name: Create intl file
32 shell: bash
33 env:
34 CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
35 run: |
36 python3 intl/download_workflow.py $CROWDIN_API_KEY "beetle-wswan-libretro" "libretro_core_options_intl.h"
37
38 - name: Commit files
39 run: |
40 git config --local user.email "[email protected]"
41 git config --local user.name "github-actions[bot]"
42 git add intl/*_workflow.py "libretro_core_options_intl.h"
43 git commit -m "Fetch translations & Recreate libretro_core_options_intl.h"
44
45 - name: GitHub Push
46 uses: ad-m/[email protected]
47 with:
48 github_token: ${{ secrets.GITHUB_TOKEN }}
49 branch: ${{ github.ref }}