enhance: new integration method with Weblate to reduce issues with merging changes

pull/470/head
Hintay 2 years ago
parent 6c7b644f60
commit 43fb701425
No known key found for this signature in database
GPG Key ID: 120FC7FF121F2F2D

@ -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
- name: Setup Python
uses: actions/setup-python@v5
with: with:
ref: 'main' python-version: '3.10'
fetch-depth: 0 cache: pip
- name: Install wlc
run: pip install wlc
- name: Merge dev to main branch - name: Update Repository
run: | env:
git merge --ff-only -- origin/dev WEBLATE_TOKEN: ${{ secrets.WEBLATE_TOKEN }}
git push run: wlc --key $WEBLATE_TOKEN pull

@ -0,0 +1,3 @@
[weblate]
url = https://weblate.nginxui.com/api/
translation = nginx-ui
Loading…
Cancel
Save