2023-04-05 19:36:51 +02:00
|
|
|
name: Open Translations PR
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
# At 00:00 on every Monday UTC
|
|
|
|
- cron: '0 0 * * 1'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
open-translations-pr:
|
2023-05-04 16:09:29 +03:00
|
|
|
runs-on: macos-13
|
2023-04-05 19:36:51 +02:00
|
|
|
# Skip in forks
|
2023-12-12 14:34:44 +00:00
|
|
|
if: github.repository == 'element-hq/element-x-ios'
|
2023-04-05 19:36:51 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2023-12-19 19:50:04 +02:00
|
|
|
- name: Setup environment
|
|
|
|
run:
|
|
|
|
source ci_scripts/ci_common.sh && setup_github_actions_translations_environment
|
2023-04-05 19:36:51 +02:00
|
|
|
|
|
|
|
- name: Download All Translations
|
|
|
|
run: swift run tools download-strings --all-languages
|
|
|
|
|
|
|
|
- name: Verify Translations
|
|
|
|
run: swift run tools locheck
|
2024-02-20 13:05:31 +01:00
|
|
|
|
|
|
|
- name: SAS Translations
|
|
|
|
run: swift run tools generate-sas
|
2023-04-05 19:36:51 +02:00
|
|
|
|
|
|
|
- name: Create PR for Translations
|
|
|
|
uses: peter-evans/create-pull-request@v5
|
|
|
|
with:
|
2023-04-12 18:46:06 +02:00
|
|
|
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
2023-04-05 19:36:51 +02:00
|
|
|
commit-message: Translations update
|
|
|
|
title: Translations update
|
|
|
|
body: |
|
|
|
|
- Translations update
|
|
|
|
branch: translations/update
|
|
|
|
base: develop
|
|
|
|
add-paths: |
|
|
|
|
*.strings
|
2023-04-12 12:03:11 +02:00
|
|
|
*.stringsdict
|
2024-02-20 13:05:31 +01:00
|
|
|
**/Strings.swift
|