Skip to content

Commit

Permalink
Add translation update action
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldOfView committed Mar 5, 2023
1 parent 8b77412 commit 674aff1
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/translation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Auto translation with the action"

on:
push:
branches-ignore:
- 'release'
- '**.**'

jobs:
update_translation:
name: "Update plugin translation"
runs-on: "ubuntu-latest"

steps:
- name: "Translation"
id: translation
uses: fieldOfView/cura-plugin-translation-action@feature_definitioncontainer_translation
with:
translation_folder: 'i18n'
translation_name: 'linearadvancesettingplugin'
plugin_name: 'Linear Advance Setting Plugin'

- 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: 'Translation update'
body: 'Translation was automatically updated'
commit-message: 'Translation update'
labels: 'translation'

0 comments on commit 674aff1

Please sign in to comment.