-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 1.04 KB
/
translation.yml
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
33
34
35
name: Create translation pull request
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only if resx files where involved
on:
push:
paths:
- '**.resx'
tags-ignore:
- '*' # ignore all tags because tag pushes ignore paths-filters
# GitHub automatically creates a GITHUB_TOKEN secret to use in your workflow.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
# Translate and combine ResX files
- name: Translation and Combination
id: translator
uses: Yeah69/MrMeeseeks.ResXTranslationCombinator@main
with:
# The authentication key of the DeepL API access
auth: ${{ secrets.DEEPL_API_AUTH_KEY }}
- name: create-pull-request
uses: peter-evans/create-pull-request@main
with:
title: '${{ steps.translator.outputs.summary-title }}'
commit-message: '${{ steps.translator.outputs.summary-details }}'