mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-01 07:21:17 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
33 lines
931 B
YAML
33 lines
931 B
YAML
name: POEditor export
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'resources/i18n/*.json'
|
|
|
|
jobs:
|
|
push-translations:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository_owner == 'navidrome' }}
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Detect changed translation files
|
|
id: changed
|
|
run: |
|
|
CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD -- 'resources/i18n/*.json' | tr '\n' ' ')
|
|
echo "files=$CHANGED_FILES" >> $GITHUB_OUTPUT
|
|
echo "Changed translation files: $CHANGED_FILES"
|
|
|
|
- name: Push translations to POEditor
|
|
if: ${{ steps.changed.outputs.files != '' }}
|
|
env:
|
|
POEDITOR_APIKEY: ${{ secrets.POEDITOR_APIKEY }}
|
|
POEDITOR_PROJECTID: ${{ secrets.POEDITOR_PROJECTID }}
|
|
run: |
|
|
.github/workflows/push-translations.sh ${{ steps.changed.outputs.files }}
|