Skip to content

Commit db2c812

Browse files
committed
ci: Add Inputs
1 parent 7762e20 commit db2c812

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

action.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
name: "String Parser"
22
description: "Easily parse strings in your GitHub Actions workflow."
3+
4+
inputs:
5+
body:
6+
description: 'The string to be parsed'
7+
required: true
8+
split:
9+
description: 'The string used to split the body'
10+
required: false
11+
splitIndex:
12+
description: 'The index after splitting the string'
13+
required: false
14+
replaceBefore:
15+
description: 'The substring to replace before the split'
16+
required: false
17+
replaceAfter:
18+
description: 'The substring to replace after the split'
19+
required: false
20+
envName:
21+
description: 'The environment variable name to store the result'
22+
required: true
23+
324
runs:
425
using: "node20"
526
main: "index.js"

0 commit comments

Comments
 (0)