Merge pull request #291 from kodi-game/rename-numpad-equals #554
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Increment version of updated languages | |
on: | |
push: | |
branches: [ master, main ] | |
paths: | |
- '**resource.language.**strings.po' | |
jobs: | |
default: | |
if: github.repository == 'kodi-game/controller-topology-project' | |
runs-on: ubuntu-latest | |
name: Increment version of updated languages | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
path: ${{ github.event.repository.name }} | |
- name: Checkout Scripts | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
repository: xbmc/weblate-supplementary-scripts | |
path: scripts | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Get changed files | |
uses: trilom/[email protected] | |
- name: Increment version of updated languages | |
run: | | |
python3 ../scripts/repo-resources/increment_version.py $HOME/files.json | |
working-directory: ${{ github.event.repository.name }} | |
- name: Create PR for incremented versions | |
uses: peter-evans/[email protected] | |
with: | |
commit-message: Controller add-on versions incremented | |
title: Controller add-on versions incremented | |
body: Controller add-on versions incrementing triggered by ${{ github.sha }} | |
branch: inc-ver | |
delete-branch: true | |
path: ./${{ github.event.repository.name }} | |
reviewers: gade01 |