Files
element-x-ios/.github/workflows/translations-pr.yml
T
Doug cf6afcf647 Automatically open a PR to bump the calver (#4167)
* Update our tools package to Swift 6.1

Also improves the package layout with subdirectories 📁

* Update GenerateSDKMocks to be an Async command.

* Add a tool to bump the project CalVer every month.

* Add a workflow to automatically bump the calendar version.

Note: This only does year & month, the patch is handled by the release script.
2025-06-03 17:52:16 +01:00

46 lines
1.3 KiB
YAML

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
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@271a8d0340265f705b14b6d32b9829c1cb33d45e #v7.0.8
with:
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
author: ElementRobot <releases@riot.im>
commit-message: Translations update
title: Translations update
body: |
- Translations update
labels: pr-i18n
branch: translations/update
base: develop
add-paths: |
*.strings
*.stringsdict
**/Strings.swift