Skip to content

localization: add templates #3776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: latest
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: added workflow to update POT files
  • Loading branch information
lastoCHka42 committed Oct 23, 2023
commit 80d5265a7a5cf0fd48579d54b8537b527dd1f5b1
35 changes: 35 additions & 0 deletions .github/workflows/push-pot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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 --add safe.directory /__w/doc/doc
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 -f locale/en/
git commit -m "updated pot"
git push origin test-weblate