forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update translate tools and add ci (#736)
## Что этот PR делает Переработан converter.py Добавлена ci проверка на перевод ## Changelog :cl: add: Добавлена ci проверка на перевод fix: Переработан converter.py /:cl:
- Loading branch information
Showing
2 changed files
with
97 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- translate | ||
pull_request: | ||
branches: | ||
- translate | ||
|
||
jobs: | ||
translate_check: | ||
name: Run translate checks | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: 'Update Branch' | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Installing Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Installing deps | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r ./tools/translator/requirements.txt | ||
- name: Git fetch | ||
run: | | ||
git fetch | ||
- name: Create temporary branch | ||
run: | | ||
git checkout -b translate_tmp origin/translate | ||
- name: Apply PR translation | ||
run: | | ||
git diff ..${{ github.sha }} | git apply | ||
- name: 'Generate Translation' | ||
run: | | ||
python ./tools/translator/converter.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters