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.
 
 
 

47 lines
1.6 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. workflow_dispatch:
  8. permissions:
  9. contents: write
  10. pull-requests: write
  11. jobs:
  12. update:
  13. if: github.repository == 'spantaleev/matrix-docker-ansible-deploy'
  14. name: Update translations
  15. runs-on: ubuntu-latest
  16. steps:
  17. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
  18. - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
  19. with:
  20. python-version: '3.14'
  21. # Setting up recommended prerequisites
  22. # See: i18n/README.md
  23. - uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
  24. - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4
  25. # TODO: optimize when we start publishing translations and integrate a Weblate instance
  26. - name: Update translation catalog templates (POT) files
  27. run: just --justfile i18n/justfile extract-translation-templates
  28. - name: Create Pull Request
  29. uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
  30. with:
  31. author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> # Same as committer
  32. body: This is an automatic pull request to update translation files.
  33. branch: create-pull-request/i18n
  34. commit-message: Automatic translations update
  35. delete-branch: true
  36. labels: docs
  37. sign-commits: true
  38. title: Automatic translations update