Files
letro-ios/.github/workflows/translations-pr.yml
Mauro b03bc997fc Translations workflow and tools (#768)
* Translations workflow and tools

* improved the name of the workflow

* need this commit to trigger the workflow for the first time

* swift tools can now run on CI

* only strings and stringsdict will be committed

* fixed a workflow issue

* starting the workflow to save it

* fixing downgrade issues

* fixing URL usage

* install localazy

* fixing add-paths typo

* downloaded strings

* removing on push trigger

* Update Tools/Sources/DownloadTranslations.swift

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>

* Added locheck for string verification

* code formatting improvement

* Update Tools/Sources/Locheck.swift

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>

* pr suggestion

---------

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
2023-04-05 19:36:51 +02:00

37 lines
960 B
YAML

name: Open Translations PR
on:
schedule:
# At 00:00 on every Monday UTC
- cron: '0 0 * * 1'
workflow_dispatch:
jobs:
open-translations-pr:
runs-on: macos-12
# Skip in forks
if: github.repository == 'vector-im/element-x-ios'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Localazy and Mint
run: brew install mint localazy/tools/localazy
- name: Download All Translations
run: swift run tools download-strings --all-languages
- name: Verify Translations
run: swift run tools locheck
- name: Create PR for Translations
uses: peter-evans/create-pull-request@v5
with:
commit-message: Translations update
title: Translations update
body: |
- Translations update
branch: translations/update
base: develop
add-paths: |
*.strings
*.stringsdict