-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
43 lines (34 loc) · 1.13 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
42
43
name: Insert Between Markers
author: Sebastian Kunze
description: This action inserts `input` between the `begin-marker` and `end-marker` in `target` file.
inputs:
target:
description: The name of the target file.
required: false
default: README.md
encoding:
description: The encoding of the target file.
required: false
default: utf8
begin-marker:
description: The format of the begin marker.
required: true
end-marker:
description: The format of the end marker.
requried: true
input:
description: The text which will be inserted between the begin and end marker or a file path. If `input-type` is set to `file`, `input` is expected to be a file from which the content is read.
required: true
input-type:
description: If `input-type` is set to `file`, `input` is expected to be a file from which the content is read. Defaults to `text`.
required: false
default: text
outputs:
changed:
description: Determines wheter this action changed the target file (`true`) or not (`false`).
branding:
icon: file-plus
color: gray-dark
runs:
using: node16
main: dist/index.js