Improve Transifex pull action (#4916)

This commit is contained in:
tooomm 2023-10-16 22:51:08 +02:00 committed by GitHub
parent 186f4289e9
commit 324b50e381
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View file

@ -7,7 +7,8 @@ Updated source strings for translations:
Last changes are based on commit {{ .commit }}. Last changes are based on commit {{ .commit }}.
--- ---
*This PR is automatically generated and updated by the workflow at `.github/workflows/translations-push.yml`.*<br> *This PR is automatically generated and updated by the workflow at `.github/workflows/translations-push.yml`. Review [action runs][2].*<br>
*After merging, all changes to the source language are available for translation at [Transifex][1] shortly.* *After merging, all changes to the source language are available for translation at [Transifex][1] shortly.*
[1]: https://app.transifex.com/cockatrice/cockatrice/ [1]: https://app.transifex.com/cockatrice/cockatrice/
[2]: https://github.com/Cockatrice/Cockatrice/actions/workflows/translations-push.yml?query=branch%3Amaster

View file

@ -27,7 +27,7 @@ jobs:
# used config file: https://github.com/Cockatrice/Cockatrice/blob/master/.tx/config # used config file: https://github.com/Cockatrice/Cockatrice/blob/master/.tx/config
# https://github.com/transifex/cli#pulling-files-from-transifex # https://github.com/transifex/cli#pulling-files-from-transifex
token: ${{ secrets.TX_TOKEN }} token: ${{ secrets.TX_TOKEN }}
args: pull --all args: pull --force --all
- name: Create pull request - name: Create pull request
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
@ -43,17 +43,16 @@ jobs:
author: github-actions <github-actions@github.com> author: github-actions <github-actions@github.com>
branch: ci-update_translations branch: ci-update_translations
delete-branch: true delete-branch: true
title: '[Translations] Update translations' title: 'Update translations'
body: | body: |
`pull -all` strings from [Transifex][1] Pulled all translated strings from [Transifex][1].
<br>
--- ---
*This PR is automatically generated and updated by the workflow at `.github/workflows/translations-pull.yml`.*<br> *This PR is automatically generated and updated by the workflow at `.github/workflows/translations-pull.yml`. Review [action runs][2].*<br>
*After merging, all new languages and translations are available in the next build.* *After merging, all new languages and translations are available in the next build.*
[1]: https://app.transifex.com/cockatrice/cockatrice/ [1]: https://app.transifex.com/cockatrice/cockatrice/
[2]: https://github.com/Cockatrice/Cockatrice/actions/workflows/translations-pull.yml?query=branch%3Amaster
labels: | labels: |
CI CI
Translation Translation

View file

@ -64,9 +64,9 @@ jobs:
commit-message: Update translation source strings commit-message: Update translation source strings
# author is the owner of the commit # author is the owner of the commit
author: github-actions <github-actions@github.com> author: github-actions <github-actions@github.com>
branch: ci-update_translation_source_strings branch: ci-update_translation_source
delete-branch: true delete-branch: true
title: '[Translations] Update source strings' title: 'Update source strings'
body: ${{ steps.template.outputs.result }} body: ${{ steps.template.outputs.result }}
labels: | labels: |
CI CI