Skip to content

Commit ecb32d6

Browse files
committed
Create sync-addon-metadata-translations.yml
1 parent 2486af9 commit ecb32d6

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Sync addon metadata translations
2+
3+
on:
4+
push:
5+
branches: [ master, main ]
6+
paths:
7+
- '**addon.xml'
8+
- '**resource.language.**strings.po'
9+
10+
jobs:
11+
default:
12+
if: github.repository == 'XBMC-Addons/plugin.library.node.editor'
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@v2
25+
with:
26+
path: project
27+
28+
- name: Checkout sync_addon_metadata_translations repository
29+
uses: actions/checkout@v2
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@v2
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/create-pull-request@v3.10.0
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

0 commit comments

Comments
 (0)