summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-07-31 16:27:11 +0200
committerAlexandre Flament <alex@al-f.net>2021-08-02 09:44:13 +0200
commit49aa7822d9e9235d98f4093f9fd75528c6fd5f07 (patch)
tree31fc5d123dfb86b2fb2d3c4153f712fd4c9e85ac /.github
parent32263ea637426c6a1a5306e3b24e317a7daab5ac (diff)
github workflow: babel jobs to update messages.pot
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/integration.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index ca0a0282..f4ffd77b 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -90,6 +90,47 @@ jobs:
SINGLE_COMMIT: True
COMMIT_MESSAGE: build from commit ${{ github.sha }}
+ babel:
+ name: Babel
+ runs-on: ubuntu-20.04
+ if: ${{ github.repository_owner == 'searxng' && github.ref == 'refs/heads/master' }}
+ needs:
+ - python
+ - themes
+ - documentation
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ persist-credentials: false
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: '3.9'
+ architecture: 'x64'
+ - name: Update transations
+ id: update
+ continue-on-error: true
+ run: |
+ pip install babel jinja2
+ searx_extra/update/update_translations.sh
+ - name: Open pull request
+ if: steps.update.outcome == 'success'
+ uses: peter-evans/create-pull-request@v3
+ with:
+ commit-message: Update translations (pot, po)
+ committer: searx-bot <noreply@github.com>
+ author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
+ signoff: false
+ branch: update_translations_pot
+ delete-branch: true
+ draft: false
+ title: 'Update translations (pot, po)'
+ body: |
+ Update messages.pot and messages.po files
+ labels: |
+ translation
+
dockers:
name: Docker
if: github.ref == 'refs/heads/master'