|
|
@@ -7,11 +7,13 @@ on:
|
|
|
|
|
|
permissions:
|
|
|
contents: write
|
|
|
+ pull-requests: write
|
|
|
|
|
|
jobs:
|
|
|
refresh:
|
|
|
name: Qt translations refresh
|
|
|
runs-on: ubuntu-latest
|
|
|
+ if: github.repository == 'vcmi/vcmi'
|
|
|
|
|
|
steps:
|
|
|
- name: Checkout
|
|
|
@@ -35,10 +37,17 @@ jobs:
|
|
|
run: |
|
|
|
lupdate . -ts translation/*.ts
|
|
|
|
|
|
- - name: Commit and push translation updates
|
|
|
- uses: EndBug/add-and-commit@v9
|
|
|
+ - name: Create Pull Request
|
|
|
+ uses: peter-evans/create-pull-request@v7
|
|
|
with:
|
|
|
- add: "launcher/translation mapeditor/translation"
|
|
|
- default_author: github_actions
|
|
|
- message: "Auto-update VCMI Qt translation files"
|
|
|
- push: true
|
|
|
+ token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+ branch: bot/qt-translation-refresh/${{ github.ref_name }}
|
|
|
+ base: ${{ github.ref_name }}
|
|
|
+ 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
|