forked from wavelog/wavelog
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.14 KB
/
translation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Run the po generator script
on:
workflow_dispatch:
push:
branches:
- dev
jobs:
run_scripts:
if: github.repository == 'wavelog/wavelog'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: wavelog/wavelog
ref: dev
- name: Set up gettext
run: sudo apt-get install -y gettext
- name: Run all po_gen scripts
run: |
bash po_gen.sh
bash install/po_gen_installer.sh
- name: Commit changes
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
if [[ -n $(git status --porcelain) ]]; then
git add .
git commit -m "po/mo updates"
git push
else
echo "No changes to commit."
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Invoke Weblate Update
uses: distributhor/workflow-webhook@v3
with:
webhook_type: 'json-extended'
webhook_url: ${{ secrets.WEBLATE_HOOKURL }}