Improve Transifex pull action (#4916)
This commit is contained in:
parent
186f4289e9
commit
324b50e381
3 changed files with 9 additions and 9 deletions
|
@ -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
|
||||||
|
|
11
.github/workflows/translations-pull.yml
vendored
11
.github/workflows/translations-pull.yml
vendored
|
@ -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
|
||||||
|
|
4
.github/workflows/translations-push.yml
vendored
4
.github/workflows/translations-push.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue