mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-06-19 07:36:59 +00:00
enhance: new integration method with Weblate to reduce issues with merging changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Merge Branches
|
||||
name: Synchronize Branches
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
@@ -10,17 +10,23 @@ on:
|
||||
- published
|
||||
|
||||
jobs:
|
||||
merge:
|
||||
weblate:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.pull_request.merged == true || github.event.action == 'published'
|
||||
steps:
|
||||
- name: Checkout main branch
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: 'main'
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Merge dev to main branch
|
||||
run: |
|
||||
git merge --ff-only -- origin/dev
|
||||
git push
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
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
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[weblate]
|
||||
url = https://weblate.nginxui.com/api/
|
||||
translation = nginx-ui
|
||||
Reference in New Issue
Block a user