[translations] ./manage rename shell functions to integrate weblate

Functions implemented to run *Weblate* workflows should use prefix 'weblate.':

- babel.setup.translations.worktree --> weblate.translations.worktree

  Create git worktree ${TRANSLATIONS_WORKTREE} and checkout branch
  'translations' from Weblate's counterpart (weblate) of the SearXNG
   (origin)::

       remote weblate https://weblate.bubu1.eu/git/searxng/searxng/

- babel.weblate.to.translations     --> weblate.to.translations

  Update 'translations' branch of SearXNG (origin) with last additions from
  Weblate.

- babel.translations.to.master      --> weblate.translations.commit

  Update 'translations' branch of SearXNG (origin) with last additions from
  Weblate.  Copy the changes to the master branch, compile translations and
  create a commit in the local branch (master)

- babel.master.to.translations      --> weblate.push.translations

  Push *translation changes* from SearXNG (origin) to Weblate's
  counterpart (weblate).

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-08-16 11:30:53 +02:00
parent 0dc8d244c5
commit 97355672cd
6 changed files with 26 additions and 17 deletions

View file

@ -127,7 +127,7 @@ jobs:
id: update
run: |
git restore utils/brand.env
make V=1 babel.master.to.translations
make V=1 weblate.push.translations
dockers:
name: Docker

View file

@ -36,7 +36,7 @@ jobs:
git config --global user.name "searxng-bot"
- name: Merge and push transation updates
run: |
make V=1 babel.translations.to.master
make V=1 weblate.translations.commit
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3