mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
enhance: new integration method with Weblate to reduce issues with merging changes
This commit is contained in:
parent
6c7b644f60
commit
43fb701425
2 changed files with 19 additions and 10 deletions
26
.github/workflows/branches.yml
vendored
26
.github/workflows/branches.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Merge Branches
|
name: Synchronize Branches
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -10,17 +10,23 @@ on:
|
||||||
- published
|
- published
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
merge:
|
weblate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.pull_request.merged == true || github.event.action == 'published'
|
if: github.event.pull_request.merged == true || github.event.action == 'published'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout main branch
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
ref: 'main'
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Merge dev to main branch
|
- name: Setup Python
|
||||||
run: |
|
uses: actions/setup-python@v5
|
||||||
git merge --ff-only -- origin/dev
|
with:
|
||||||
git push
|
python-version: '3.10'
|
||||||
|
cache: pip
|
||||||
|
|
||||||
|
- name: Install wlc
|
||||||
|
run: pip install wlc
|
||||||
|
|
||||||
|
- name: Update Repository
|
||||||
|
env:
|
||||||
|
WEBLATE_TOKEN: ${{ secrets.WEBLATE_TOKEN }}
|
||||||
|
run: wlc --key $WEBLATE_TOKEN pull
|
||||||
|
|
3
.weblate.ini
Normal file
3
.weblate.ini
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[weblate]
|
||||||
|
url = https://weblate.nginxui.com/api/
|
||||||
|
translation = nginx-ui
|
Loading…
Add table
Add a link
Reference in a new issue