mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-02-22 03:40:43 +00:00
Create localize.yml
This commit is contained in:
parent
3bd9f6b710
commit
b3cdadca86
42
.github/workflows/localize.yml
vendored
Normal file
42
.github/workflows/localize.yml
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
name: localize
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [nightly]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
localize:
|
||||||
|
name: Update Localization
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Python 3.9
|
||||||
|
uses: actions/setup-python@v3 # https://github.com/actions/setup-python
|
||||||
|
with:
|
||||||
|
python-version: '3.9'
|
||||||
|
|
||||||
|
- name: Set up Python 3.9 Dependencies
|
||||||
|
run: |
|
||||||
|
cd ./locale
|
||||||
|
python -m pip install --upgrade pip setuptools
|
||||||
|
python -m pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Set up xgettext
|
||||||
|
run: |
|
||||||
|
sudo apt-get update -y && \
|
||||||
|
sudo apt-get --reinstall install -y \
|
||||||
|
gettext
|
||||||
|
|
||||||
|
- name: Update Strings
|
||||||
|
run: |
|
||||||
|
python ./locale/_locale.py --extract --init --update
|
||||||
|
|
||||||
|
- name: GitHub Commit & Push # push changes back into nightly
|
||||||
|
uses: actions-js/push@v1.2
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
branch: nightly
|
||||||
|
message: localization updated by localize workflow
|
Loading…
x
Reference in New Issue
Block a user