2023-04-11 15:15:08 +02:00
|
|
|
name: POEditor import
|
2023-01-27 16:12:53 +01:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 10 * * *'
|
|
|
|
jobs:
|
2023-01-27 16:17:03 +01:00
|
|
|
update-translations:
|
2023-01-27 16:12:53 +01:00
|
|
|
runs-on: ubuntu-latest
|
2023-05-16 16:33:06 +02:00
|
|
|
if: ${{ github.repository_owner == 'navidrome' }}
|
2023-01-27 16:12:53 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Get updated translations
|
|
|
|
env:
|
|
|
|
POEDITOR_PROJECTID: ${{ secrets.POEDITOR_PROJECTID }}
|
|
|
|
POEDITOR_APIKEY: ${{ secrets.POEDITOR_APIKEY }}
|
|
|
|
run: |
|
|
|
|
./update-translations.sh
|
2023-03-29 19:03:37 +02:00
|
|
|
- name: Show changes, if any
|
|
|
|
run: |
|
|
|
|
git status --porcelain
|
|
|
|
git diff
|
2023-01-27 16:12:53 +01:00
|
|
|
- name: Create Pull Request
|
|
|
|
uses: peter-evans/create-pull-request@v4
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.PAT }}
|
|
|
|
commit-message: Update translations
|
2023-01-27 16:17:03 +01:00
|
|
|
title: Update translations from POEditor
|
2023-01-27 16:12:53 +01:00
|
|
|
branch: update-translations
|