mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Update qt_translation_update.yml
This commit is contained in:
21
.github/workflows/qt_translation_update.yml
vendored
21
.github/workflows/qt_translation_update.yml
vendored
@@ -7,11 +7,13 @@ on:
|
|||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
refresh:
|
refresh:
|
||||||
name: Qt translations refresh
|
name: Qt translations refresh
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'vcmi/vcmi'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -35,10 +37,17 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
lupdate . -ts translation/*.ts
|
lupdate . -ts translation/*.ts
|
||||||
|
|
||||||
- name: Commit and push translation updates
|
- name: Create Pull Request
|
||||||
uses: EndBug/add-and-commit@v9
|
uses: peter-evans/create-pull-request@v7
|
||||||
with:
|
with:
|
||||||
add: "launcher/translation mapeditor/translation"
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
default_author: github_actions
|
branch: bot/qt-translation-refresh/${{ github.ref_name }}
|
||||||
message: "Auto-update VCMI Qt translation files"
|
base: ${{ github.ref_name }}
|
||||||
push: true
|
commit-message: "Auto-update VCMI Qt translation files"
|
||||||
|
title: "Auto-update Qt translation files"
|
||||||
|
body: |
|
||||||
|
This PR updates Qt translation `.ts` files generated by `lupdate`.
|
||||||
|
add-paths: |
|
||||||
|
launcher/translation/*.ts
|
||||||
|
mapeditor/translation/*.ts
|
||||||
|
delete-branch: true
|
||||||
|
|||||||
Reference in New Issue
Block a user