Skip to content

Commit 0cd4b6b

Browse files
committed
ci: added workflow to update POT locale files
Related to #3708
1 parent b7f26a6 commit 0cd4b6b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/push-pot.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Push POTs
2+
on:
3+
push:
4+
branches:
5+
- '3.0'
6+
permissions:
7+
contents: write
8+
jobs:
9+
generate-pot:
10+
runs-on: ubuntu-latest
11+
container: tarantool/doc-builder:fat-4.3
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Generate Portable Object Templates
16+
run: |
17+
cmake .
18+
make update-pot
19+
20+
- name: Commit generated pots
21+
run: |
22+
git config --global --add safe.directory /__w/doc/doc
23+
git config --global user.name 'TarantoolBot'
24+
git config --global user.email '[email protected]'
25+
26+
if [[ $(git status) =~ .*"nothing to commit".* ]]; then
27+
echo "status=nothing-to-commit"
28+
exit 0
29+
fi
30+
31+
git add -f locale/en
32+
git commit -m "updated pot"
33+
git push origin lastochka42/generate-pot
34+

0 commit comments

Comments
 (0)