-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: added workflow to update POT files
- Loading branch information
1 parent
8449caa
commit cda0843
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Push POTs | ||
on: | ||
push: | ||
branches: | ||
- 'test-weblate' | ||
- '3.0' | ||
permissions: | ||
contents: write | ||
jobs: | ||
generate-pot: | ||
runs-on: ubuntu-latest | ||
container: tarantool/doc-builder:fat-4.3 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Generate Portable Object Templates | ||
run: | | ||
cmake . | ||
make update-pot | ||
- name: Commit generated pots | ||
run: | | ||
git config --global user.name 'TarantoolBot' | ||
git config --global user.email '[email protected]' | ||
if [[ $(git status) =~ .*"nothing to commit".* ]]; then | ||
echo "status=nothing-to-commit" | ||
exit 0 | ||
fi | ||
git add locale/en/ | ||
git commit -m "updated pot" | ||
git push origin test-weblate | ||