Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 60be5f3

Browse files
committedOct 23, 2023
ci: added workflow to update POT files
1 parent 8449caa commit 60be5f3

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
 

‎.github/workflows/push-pot.yml

+35
Original file line numberDiff line numberDiff line change
@@ -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+
run: |
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

Comments
 (0)
Please sign in to comment.