-
Notifications
You must be signed in to change notification settings - Fork 7
/
action.yml
35 lines (35 loc) · 1017 Bytes
/
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
name: "Extract Markdown Section"
description: "Extract sections of a markdown file with a regular expression"
branding:
icon: crosshair
color: purple
inputs:
file:
description: "The input file"
required: true
pattern:
description: "Pattern to match against headings"
required: true
case-sensitive:
description: "Treat pattern as case sensitive"
default: "false"
include-all:
description: >
'Print all matching sections (don't quit after first match)'
default: "false"
no-print-matched-heading:
description: "Do not include the matched heading in the output"
default: "false"
outputs:
markdown:
description: The extracted Markdown section body.
runs:
using: "docker"
image: "./.github/action/Dockerfile"
env:
FLAG_CASE_SENSITIVE: ${{ inputs.case-sensitive }}
FLAG_INCLUDE_ALL: ${{ inputs.include-all }}
FLAG_NO_PRINT_MATCHED_HEADING: ${{ inputs.no-print-matched-heading }}
args:
- ${{ inputs.pattern }}
- ${{ inputs.file }}