mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-06-19 07:36:59 +00:00
33 lines
671 B
YAML
33 lines
671 B
YAML
name: Synchronize Branches
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'dev'
|
|
types: [ closed ]
|
|
release:
|
|
types:
|
|
- published
|
|
|
|
jobs:
|
|
weblate:
|
|
runs-on: ubuntu-latest
|
|
if: github.event.pull_request.merged == true || github.event.action == 'published'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- 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
|