Debian Codegraph @

kodi-game/.github/workflows/sync-addon-metadata-translations.yml

raw symbols SCIP
1 name: Sync addon metadata translations
2
3 on:
4 push:
5 branches: [ master, Matrix, Nexus, Omega ]
6 paths:
7 - '**addon.xml.in'
8 - '**resource.language.**strings.po'
9
10 jobs:
11 default:
12 if: github.repository == 'kodi-game/game.libretro.genplus'
13 runs-on: ubuntu-latest
14
15 steps:
16
17 - name: Checkout repository
18 uses: actions/checkout@v2
19 with:
20 path: project
21
22 - name: Set up Python
23 uses: actions/setup-python@v2
24 with:
25 python-version: '3.9'
26
27 - name: Install dependencies
28 run: |
29 python -m pip install --upgrade pip
30 python -m pip install git+https://github.com/xbmc/sync_addon_metadata_translations.git
31
32 - name: Run sync-addon-metadata-translations
33 run: |
34 sync-addon-metadata-translations
35 working-directory: ./project
36
37 - name: Commit files
38 run: |
39 git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
40 git config --local user.name "github-actions[bot]"
41 git commit -m "Sync of addon metadata translations" -a
42 working-directory: ./project
43 continue-on-error: true
44
45 - name: Push changes
46 uses: ad-m/github-push-action@master
47 with:
48 branch: ${{ github.ref }}
49 directory: ./project