Files
letro-ios/.github/workflows/translations-pr.yml
Doug b1b0966cae Add zizmor checks on CI. (#5161)
* Add zizmor checks on CI.

* Fix zizmor credentials warnings

* Add persist-credentials: false to action-cached-lfs-checkout too.

* Add empty permissions by default.

* Ignore pull_request_target failure and add a warning.
2026-03-05 13:54:51 +00:00

52 lines
1.4 KiB
YAML

name: Open Translations PR
on:
schedule:
# At 03:00 on every Monday UTC
- cron: '0 3 * * 1'
workflow_dispatch:
permissions: {}
jobs:
open-translations-pr:
runs-on: macos-15
timeout-minutes: 15
# Skip in forks
if: github.repository == 'element-hq/element-x-ios'
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup environment
run:
source ci_scripts/ci_common.sh && setup_github_actions_translations_environment
- name: Download All Translations
run: swift run -q tools download-strings --all-languages
- name: Verify Translations
run: swift run -q tools locheck
- name: SAS Translations
run: swift run -q tools generate-sas
- name: Create PR for Translations
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
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