generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
41 lines (41 loc) · 1.15 KB
/
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
37
38
39
40
41
name: 'JavaScript action'
description: 'Run a JavaScript snippet within a GitHub workflow'
author: 'Lyra Naeseth'
branding:
icon: code
color: blue
inputs:
script:
description: The script to run (or a script filename)
required: true
name:
description: Base filename to assign to the script (if inline)
default: script
input:
description: Input data to make available to your script
default: ''
required: false
input-encoding:
description: >-
Use "json" to JSON-decode the "input" input, or "string" to expose the raw
input string to your function. (default: "json")
required: true
default: json
result-encoding:
description: >-
Use "json" to JSON-encode the script's return value, or "string" to return
a string directly. (default: "json")
required: true
default: json
cwd:
description: Directory to change into
default: '.'
github-token:
description: Create an authenticated GitHub client
default: ${{ github.token }}
outputs:
result:
description: What the script returned, encoded according to "result-encoding"
runs:
using: 'node20'
main: 'dist/main.mjs'