Skip to content

Commit

Permalink
ci: added workflow to update POT files
Browse files Browse the repository at this point in the history
  • Loading branch information
lastoCHka42 committed Oct 23, 2023
1 parent 8449caa commit cda0843
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/push-pot.yml
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

0 comments on commit cda0843

Please sign in to comment.