mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-21 19:22:18 -05:00
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 7 to 8. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v7...v8) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: Translation Sync
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
jobs:
|
|
sync:
|
|
if: github.triggering_actor != 'allcontributors[bot]'
|
|
strategy:
|
|
matrix:
|
|
locale:
|
|
- cs
|
|
- de
|
|
- es
|
|
- fr
|
|
- ja
|
|
- nl
|
|
- pl
|
|
- pt
|
|
- ru
|
|
- zh-CN
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: ./.github/actions/setup
|
|
- name: Sync to translation.io
|
|
run: bundle exec rake translation:sync_and_show_purgeable
|
|
env:
|
|
TRANSLATION_IO_API_KEY: "${{ secrets.TRANSLATION_IO_API_KEY }}"
|
|
- name: Organize changes
|
|
run: "bundle exec i18n-tasks normalize -p -l en,${{ matrix.locale }}"
|
|
- name: Open pull request with changes
|
|
uses: peter-evans/create-pull-request@v8
|
|
with:
|
|
token: "${{ secrets.TRANSLATION_SYNC_PAT }}"
|
|
commit-message: "Automatically synced translations: ${{ matrix.locale }}"
|
|
branch: "i18n/sync-${{ matrix.locale }}"
|
|
labels: improvement,localisation
|
|
title: "Translations updated: ${{ matrix.locale }}"
|
|
delete-branch: true
|
|
add-paths: config/locales
|