mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
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>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
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
|
||||
Reference in New Issue
Block a user