Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

53 line
1.5 KiB

  1. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. name: Update translations
  6. on: # yamllint disable-line rule:truthy
  7. push:
  8. branches:
  9. - master
  10. paths: # See include_patterns on conf.py
  11. - 'docs/*.md'
  12. - 'i18n/README.md'
  13. - '*.md'
  14. permissions:
  15. contents: write
  16. pull-requests: write
  17. jobs:
  18. update:
  19. if: github.repository == 'spantaleev/matrix-docker-ansible-deploy'
  20. name: Update translations
  21. runs-on: ubuntu-latest
  22. steps:
  23. - uses: actions/checkout@v6
  24. - uses: actions/setup-python@v6
  25. with:
  26. python-version: '3.14'
  27. # Setting up recommended prerequisites
  28. # See: i18n/README.md
  29. - uses: astral-sh/setup-uv@v7
  30. - uses: extractions/setup-just@v3
  31. # TODO: optimize when we start publishing translations and integrate a Weblate instance
  32. - name: Update translation catalog templates (POT) files
  33. run: just --justfile i18n/justfile extract-translation-templates
  34. - name: Create Pull Request
  35. uses: peter-evans/create-pull-request@v8.1.0
  36. with:
  37. author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> # Same as committer
  38. body: This is an automatic pull request to update translation files.
  39. branch: create-pull-request/i18n
  40. commit-message: Automatic translations update
  41. delete-branch: true
  42. labels: docs
  43. sign-commits: true
  44. title: Automatic translations update