File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 1
- name : Merge Branches
1
+ name : Synchronize Branches
2
2
3
3
on :
4
4
pull_request :
10
10
- published
11
11
12
12
jobs :
13
- merge :
13
+ weblate :
14
14
runs-on : ubuntu-latest
15
15
if : github.event.pull_request.merged == true || github.event.action == 'published'
16
16
steps :
17
- - name : Checkout main branch
17
+ - name : Checkout
18
18
uses : actions/checkout@v4
19
+
20
+ - name : Setup Python
21
+ uses : actions/setup-python@v5
19
22
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
22
28
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
Original file line number Diff line number Diff line change
1
+ [weblate]
2
+ url = https://weblate.nginxui.com/api/
3
+ translation = nginx-ui
You can’t perform that action at this time.
0 commit comments