-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
40 lines (40 loc) · 1.1 KB
/
Copy pathaction.yml
File metadata and controls
40 lines (40 loc) · 1.1 KB
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
37
38
39
40
name: "AI Translate Action"
description: "Translate text using AI directly in your GitHub Actions workflow"
author: "FidelusAleksander"
branding:
icon: globe
color: green
inputs:
token:
description: >
Personal access token, can be passed as secrets.GITHUB_TOKEN
default: ${{ github.token }}
text:
description: >
Text to translate
required: false
text-file:
description: >
Path to a file containing the text to translate
required: false
target-language:
description: >
The language to translate the text into
required: true
model:
description: >
The AI model to use for translation
default: "gpt-4o"
custom-instructions:
description: >
Optional additional instructions to customize the translation behavior.
For example: "Don't translate code blocks" or "Keep technical terms in English".
Use this to control how specific parts of the text should be handled during translation.
required: false
outputs:
translated-text:
description: >
The translated text
runs:
using: "node20"
main: "dist/index.js"