Skip to content

Commit 43fb701

Browse files
committed
enhance: new integration method with Weblate to reduce issues with merging changes
1 parent 6c7b644 commit 43fb701

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

.github/workflows/branches.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Merge Branches
1+
name: Synchronize Branches
22

33
on:
44
pull_request:
@@ -10,17 +10,23 @@ on:
1010
- published
1111

1212
jobs:
13-
merge:
13+
weblate:
1414
runs-on: ubuntu-latest
1515
if: github.event.pull_request.merged == true || github.event.action == 'published'
1616
steps:
17-
- name: Checkout main branch
17+
- name: Checkout
1818
uses: actions/checkout@v4
19+
20+
- name: Setup Python
21+
uses: actions/setup-python@v5
1922
with:
20-
ref: 'main'
21-
fetch-depth: 0
23+
python-version: '3.10'
24+
cache: pip
25+
26+
- name: Install wlc
27+
run: pip install wlc
2228

23-
- name: Merge dev to main branch
24-
run: |
25-
git merge --ff-only -- origin/dev
26-
git push
29+
- name: Update Repository
30+
env:
31+
WEBLATE_TOKEN: ${{ secrets.WEBLATE_TOKEN }}
32+
run: wlc --key $WEBLATE_TOKEN pull

.weblate.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[weblate]
2+
url = https://weblate.nginxui.com/api/
3+
translation = nginx-ui

0 commit comments

Comments
 (0)