Beam/.github/workflows/translations-pr.yml

45 lines
1.2 KiB
YAML
Raw Normal View History

name: Open Translations PR
on:
schedule:
# At 03:00 on every Monday UTC
- cron: '0 3 * * 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
2024-05-20 10:12:28 +00:00
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
2024-02-20 13:05:31 +01:00
- name: SAS Translations
run: swift run tools generate-sas
- name: Create PR for Translations
2024-09-03 15:15:28 +00:00
uses: peter-evans/create-pull-request@v7
with:
2023-04-12 18:46:06 +02:00
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
2024-02-20 13:05:31 +01:00
**/Strings.swift