-
-
Notifications
You must be signed in to change notification settings - Fork 9
32 lines (28 loc) · 933 Bytes
/
translation.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: "Autmatically update i18n files"
on:
push:
branches-ignore:
- 'release'
- '**.**'
jobs:
update_translation:
name: "Update plugin translation"
runs-on: "ubuntu-latest"
steps:
- name: "Translation"
id: translation
uses: Elkin-Vasily/cura-plugin-translation@v1
with:
translation_folder: 'resources/i18n'
translation_name: 'meshtools'
plugin_name: 'Mesh Tools'
- if: ${{ steps.translation.outputs.template_updated || steps.translation.outputs.locales_updated }}
name: 'Create Pull Request'
uses: peter-evans/create-pull-request@v4
with:
branch: ${{github.ref_name}}-translation
delete-branch: true
title: '[CI] Translation update'
body: 'Translation was automatically updated'
commit-message: '[CI] Translation update'
labels: 'translation'