mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
dd8877e6cd
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
57 lines
2.3 KiB
YAML
57 lines
2.3 KiB
YAML
name: Sync Localazy
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# At 00:00 on every Monday UTC
|
|
- cron: '0 0 * * 1'
|
|
|
|
permissions: {}
|
|
|
|
env:
|
|
GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx4g
|
|
|
|
jobs:
|
|
sync-localazy:
|
|
runs-on: ubuntu-latest
|
|
# Skip in forks
|
|
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'element-hq/element-x-android' }}
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Use JDK 21
|
|
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
|
|
with:
|
|
distribution: 'temurin' # See 'Supported distributions' for available options
|
|
java-version: '21'
|
|
- name: Configure gradle
|
|
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
|
|
with:
|
|
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
|
|
- name: Set up Python 3.12
|
|
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
with:
|
|
python-version: 3.14
|
|
- name: Setup Localazy
|
|
run: |
|
|
curl -sS https://dist.localazy.com/debian/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/localazy.gpg
|
|
echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/localazy.gpg] https://maven.localazy.com/repository/apt/ stable main" | sudo tee /etc/apt/sources.list.d/localazy.list
|
|
sudo apt-get update && sudo apt-get install localazy
|
|
- name: Run Localazy script
|
|
run: |
|
|
./tools/localazy/downloadStrings.sh --all
|
|
./tools/localazy/importSupportedLocalesFromLocalazy.py
|
|
./tools/test/generateAllScreenshots.py
|
|
./tools/manifest/aaptDump.sh
|
|
- name: Create Pull Request for Strings
|
|
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
|
|
with:
|
|
token: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
|
|
commit-message: Sync Strings from Localazy
|
|
title: Sync Strings
|
|
body: |
|
|
- Update Strings from Localazy
|
|
branch: sync-localazy
|
|
base: develop
|
|
labels: PR-i18n
|