Skip to content

Commit cda0843

Browse files
committed
ci: added workflow to update POT files
1 parent 8449caa commit cda0843

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/push-pot.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
run: |
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 locale/en/
32+
git commit -m "updated pot"
33+
git push origin test-weblate
34+

0 commit comments

Comments
 (0)