We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8449caa commit 60be5f3Copy full SHA for 60be5f3
.github/workflows/push-pot.yml
@@ -0,0 +1,35 @@
1
+name: Push POTs
2
+on:
3
+ push:
4
+ branches:
5
+ - 'test-weblate'
6
+ - '3.0'
7
+permissions:
8
+ contents: write
9
+jobs:
10
+ generate-pot:
11
+ runs-on: ubuntu-latest
12
+ container: tarantool/doc-builder:fat-4.3
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+
16
+ - name: Generate Portable Object Templates
17
+ run: |
18
+ cmake .
19
+ make update-pot
20
21
+ - name: Commit generated pots
22
23
+ git config --global --add safe.directory /__w/doc/doc
24
+ git config --global user.name 'TarantoolBot'
25
+ git config --global user.email 'tarantoolbot@mail.ru'
26
27
+ if [[ $(git status) =~ .*"nothing to commit".* ]]; then
28
+ echo "status=nothing-to-commit"
29
+ exit 0
30
+ fi
31
32
+ git add locale/en/
33
+ git commit -m "updated pot"
34
+ git push origin test-weblate
35
0 commit comments