| 1 |
name: Sync addon metadata translations |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ Matrix, Nexus, Omega ] |
| 6 |
paths: |
| 7 |
- '**addon.xml.in' |
| 8 |
- '**resource.language.**strings.po' |
| 9 |
|
| 10 |
jobs: |
| 11 |
default: |
| 12 |
if: github.repository == 'kodi-pvr/pvr.mediaportal.tvserver' |
| 13 |
runs-on: ubuntu-latest |
| 14 |
|
| 15 |
strategy: |
| 16 |
|
| 17 |
fail-fast: false |
| 18 |
matrix: |
| 19 |
python-version: [ 3.9 ] |
| 20 |
|
| 21 |
steps: |
| 22 |
|
| 23 |
- name: Checkout repository |
| 24 |
uses: actions/checkout@v4 |
| 25 |
with: |
| 26 |
path: project |
| 27 |
|
| 28 |
- name: Checkout sync_addon_metadata_translations repository |
| 29 |
uses: actions/checkout@v4 |
| 30 |
with: |
| 31 |
repository: xbmc/sync_addon_metadata_translations |
| 32 |
path: sync_addon_metadata_translations |
| 33 |
|
| 34 |
- name: Set up Python ${{ matrix.python-version }} |
| 35 |
uses: actions/setup-python@v5 |
| 36 |
with: |
| 37 |
python-version: ${{ matrix.python-version }} |
| 38 |
|
| 39 |
- name: Install dependencies |
| 40 |
run: | |
| 41 |
python -m pip install --upgrade pip |
| 42 |
python -m pip install sync_addon_metadata_translations/ |
| 43 |
|
| 44 |
- name: Run sync-addon-metadata-translations |
| 45 |
run: | |
| 46 |
sync-addon-metadata-translations |
| 47 |
working-directory: ./project |
| 48 |
|
| 49 |
- name: Create PR for sync-addon-metadata-translations changes |
| 50 |
uses: peter-evans/[email protected] |
| 51 |
with: |
| 52 |
commit-message: Sync of addon metadata translations |
| 53 |
title: Sync of addon metadata translations |
| 54 |
body: Sync of addon metadata translations triggered by ${{ github.sha }} |
| 55 |
branch: amt-sync |
| 56 |
delete-branch: true |
| 57 |
path: ./project |
| 58 |
reviewers: gade01 |