Skip to content

Commit

Permalink
fix language file path
Browse files Browse the repository at this point in the history
  • Loading branch information
AlwinEsch committed Dec 23, 2021
1 parent 69b8ef4 commit 34b4594
Show file tree
Hide file tree
Showing 81 changed files with 25 additions and 16 deletions.
41 changes: 25 additions & 16 deletions .github/workflows/sync-addon-metadata-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Sync addon metadata translations

on:
push:
branches: [ master, Matrix, Nexus ]
branches: [ Matrix, Nexus ]
paths:
- '**addon.xml.in'
- '**resource.language.**strings.po'
Expand All @@ -12,38 +12,47 @@ jobs:
if: github.repository == 'kodi-game/peripheral.xarcade'
runs-on: ubuntu-latest

strategy:

fail-fast: false
matrix:
python-version: [ 3.9 ]

steps:

- name: Checkout repository
uses: actions/checkout@v2
with:
path: project

- name: Set up Python
- name: Checkout sync_addon_metadata_translations repository
uses: actions/checkout@v2
with:
repository: xbmc/sync_addon_metadata_translations
path: sync_addon_metadata_translations

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.9'
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install git+https://github.com/xbmc/sync_addon_metadata_translations.git
python -m pip install sync_addon_metadata_translations/
- name: Run sync-addon-metadata-translations
run: |
sync-addon-metadata-translations
working-directory: ./project

- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Sync of addon metadata translations" -a
working-directory: ./project
continue-on-error: true

- name: Push changes
uses: ad-m/github-push-action@master
- name: Create PR for sync-addon-metadata-translations changes
uses: peter-evans/create-pull-request@v3.10.0
with:
branch: ${{ github.ref }}
directory: ./project
commit-message: Sync of addon metadata translations
title: Sync of addon metadata translations
body: Sync of addon metadata translations triggered by ${{ github.sha }}
branch: amt-sync
delete-branch: true
path: ./project
reviewers: gade01

0 comments on commit 34b4594

Please sign in to comment.