2023-04-05 19:36:51 +02:00
|
|
|
name: Open Translations PR
|
|
|
|
on:
|
|
|
|
schedule:
|
2024-11-25 12:20:34 +00:00
|
|
|
# At 03:00 on every Monday UTC
|
|
|
|
- cron: '0 3 * * 1'
|
2023-04-05 19:36:51 +02:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
open-translations-pr:
|
2024-11-08 08:36:15 +00:00
|
|
|
runs-on: macos-15
|
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
|
2024-05-20 10:12:28 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-04-05 19:36:51 +02:00
|
|
|
|
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
|
2024-09-03 15:15:28 +00:00
|
|
|
uses: peter-evans/create-pull-request@v7
|
2023-04-05 19:36:51 +02:00
|
|
|
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
|
2024-06-27 15:50:41 +01:00
|
|
|
labels: pr-i18n
|
2023-04-05 19:36:51 +02:00
|
|
|
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
|