-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
42 lines (40 loc) · 1.19 KB
/
action.yml
File metadata and controls
42 lines (40 loc) · 1.19 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
name: 'Extract Code Blocks from Markdown'
description: 'Extract code blocks from markdown files with filtering'
author: 'ntnn'
branding:
icon: 'code'
color: 'blue'
inputs:
input:
description: 'Path(s) to the input markdown file(s)'
required: true
output:
description: 'Path to the output file (default: "", not compatible with multi)'
required: false
default: ''
multi:
description: 'Extract inputs to multiple files based on the file tag (default: false, not compatible with output)'
required: false
default: 'false'
tags:
description: 'Comma-separated tags to filter code blocks'
required: false
default: ''
exclude-tags:
description: 'Comma-separated tags to exclude code blocks'
required: false
default: ''
exclude-comments:
description: 'Whether to include code blocks inside HTML comments (default: false)'
required: false
default: 'false'
runs:
using: docker
image: action.Dockerfile
args:
- -output=${{ inputs.output }}
- -multi=${{ inputs.multi }}
- -tags=${{ inputs.tags }}
- -exclude-tags=${{ inputs.exclude-tags }}
- -exclude-comments=${{ inputs.exclude-comments }}
- ${{ inputs.input }}