generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
53 lines (49 loc) · 1.41 KB
/
action.yml
File metadata and controls
53 lines (49 loc) · 1.41 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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: 'single-variable-mapper'
description: 'Github action to simplify variable mapping by a specific key'
author: 'caseycs'
# Add your action's branding here. This will appear on the GitHub Marketplace.
branding:
color: green
icon: arrow-right
# Define your inputs here.
inputs:
key:
description: 'Key to match the map argument'
required: true
map:
description:
'Pairs of regular expressions and resulting values, divided by separator'
required: true
export_to:
description:
'Comma-separated list of targets to export variables to. Possible options:
env, output'
default: 'output'
export_to_env_name:
description: 'Environment variable name when export_to contains env'
default: ''
separator:
description: 'Separator between regular expression and result value'
default: ':'
mode:
description:
'Specify the behavior of getting the variable. Possible options: strict,
fallback-to-original, fallback-to-default'
default: 'strict'
default:
description:
'Default value, used when mode is fallback-to-default and not match was
found'
default: ''
allow_empty_map:
description:
'Do not throw error when empty map was provided, requires mode to be other
than strict'
default: 'false'
# Define your outputs here.
outputs:
value:
description: 'Mapped value'
runs:
using: node20
main: dist/index.cjs