generated from element-hq/.github
-
Notifications
You must be signed in to change notification settings - Fork 105
44 lines (38 loc) · 1.16 KB
/
translations-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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-15
# Skip in forks
if: github.repository == 'element-hq/element-x-ios'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup environment
run:
source ci_scripts/ci_common.sh && setup_github_actions_translations_environment
- name: Download All Translations
run: swift run tools download-strings --all-languages
- name: Verify Translations
run: swift run tools locheck
- name: SAS Translations
run: swift run tools generate-sas
- name: Create PR for Translations
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
commit-message: Translations update
title: Translations update
body: |
- Translations update
labels: pr-i18n
branch: translations/update
base: develop
add-paths: |
*.strings
*.stringsdict
**/Strings.swift