-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
action.yml
36 lines (36 loc) · 941 Bytes
/
action.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
36
---
name: "Translation Action"
author: Yevhen Fabizhevskyi
description: "This action translates any text to any language supported by chosen provider."
branding:
icon: users
color: green
inputs:
source:
description: |
Text or path to the file (absolute or relative to $GITHUB_WORKSPACE) for
translation.
required: true
provider:
description: "Provider identifier."
required: true
api_key:
description: "API key that should be used for chosen provider."
required: false
default: ""
api_additional_parameter:
description: |
Additional parameter for the API. eg the region for Microsoft: canadacentral.
required: false
default: ""
lang:
description: |
The translation direction. Should be one of the option proposed by chosen
provider.
required: true
outputs:
text:
description: "Translated text."
runs:
using: "node20"
main: "dist/index.js"