Some checks failed
Pipeline: Test, Lint, Build / Get version info (push) Has been cancelled
Pipeline: Test, Lint, Build / Lint Go code (push) Has been cancelled
Pipeline: Test, Lint, Build / Test Go code (push) Has been cancelled
Pipeline: Test, Lint, Build / Test JS code (push) Has been cancelled
Pipeline: Test, Lint, Build / Lint i18n files (push) Has been cancelled
Pipeline: Test, Lint, Build / Check Docker configuration (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (darwin/amd64) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (darwin/arm64) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (linux/386) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (linux/amd64) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (linux/arm/v5) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (linux/arm/v6) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (linux/arm/v7) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (linux/arm64) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (windows/386) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (windows/amd64) (push) Has been cancelled
Pipeline: Test, Lint, Build / Push to GHCR (push) Has been cancelled
Pipeline: Test, Lint, Build / Push to Docker Hub (push) Has been cancelled
Pipeline: Test, Lint, Build / Cleanup digest artifacts (push) Has been cancelled
Pipeline: Test, Lint, Build / Build Windows installers (push) Has been cancelled
Pipeline: Test, Lint, Build / Package/Release (push) Has been cancelled
Pipeline: Test, Lint, Build / Upload Linux PKG (push) Has been cancelled
Close stale issues and PRs / stale (push) Has been cancelled
POEditor import / update-translations (push) Has been cancelled
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: POEditor import
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 10 * * *'
|
|
jobs:
|
|
update-translations:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository_owner == 'navidrome' }}
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Get updated translations
|
|
id: poeditor
|
|
env:
|
|
POEDITOR_PROJECTID: ${{ secrets.POEDITOR_PROJECTID }}
|
|
POEDITOR_APIKEY: ${{ secrets.POEDITOR_APIKEY }}
|
|
run: |
|
|
.github/workflows/update-translations.sh 2> title.tmp
|
|
title=$(cat title.tmp)
|
|
echo "::set-output name=title::$title"
|
|
rm title.tmp
|
|
- name: Show changes, if any
|
|
run: |
|
|
git status --porcelain
|
|
git diff
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v7
|
|
with:
|
|
token: ${{ secrets.PAT }}
|
|
author: "navidrome-bot <navidrome-bot@navidrome.org>"
|
|
commit-message: "fix(ui): update ${{ steps.poeditor.outputs.title }} translations from POEditor"
|
|
title: "fix(ui): update ${{ steps.poeditor.outputs.title }} translations from POEditor"
|
|
branch: update-translations
|