Add GitHub action to sync Localazy strings.
This commit is contained in:
parent
7bf41d12e2
commit
d0298392c4
1 changed files with 28 additions and 0 deletions
28
.github/workflows/sync-localazy.yml
vendored
Normal file
28
.github/workflows/sync-localazy.yml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
name: Sync Localazy
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
# At 00:00 on every Monday UTC
|
||||||
|
- cron: '0 0 * * 1'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync-localazy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# Skip in forks
|
||||||
|
if: github.repository == 'vector-im/element-x-android'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Python 3.8
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: 3.8
|
||||||
|
- name: Run Localazy script
|
||||||
|
run: ./tools/localazy/downloadStrings.sh --all
|
||||||
|
- name: Create Pull Request for Strings
|
||||||
|
uses: peter-evans/create-pull-request@v4
|
||||||
|
with:
|
||||||
|
commit-message: Sync Strings from Localazy
|
||||||
|
title: Sync Strings
|
||||||
|
body: |
|
||||||
|
- Update Strings from Localazy
|
||||||
|
branch: sync-localazy
|
||||||
|
base: develop
|
||||||
Loading…
Add table
Add a link
Reference in a new issue