summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-08-02 11:04:37 +0200
committerGitHub <noreply@github.com>2021-08-02 11:04:37 +0200
commit83b973d401296a52213efa374655a8a195857f98 (patch)
treed8213a8a4ddf7d119424bf7eff3446e297128820 /.github/workflows
parente0ca749ff55cf6ff69c70197216a592273c5f5be (diff)
parent900baf2eaefcde51c6de740cde3f0a99eb2f0791 (diff)
Merge pull request #238 from dalf/update_babel
Automatic update of searx/translations/messages.pot and messages.po files.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/integration.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index ca0a02824..78fc66e3f 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -90,6 +90,45 @@ 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: make V=1 ci.babel.update
+ - 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'