forked from erclu/check-crlf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
51 lines (48 loc) · 2.1 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
44
45
46
47
48
49
50
51
name: check-crlf-extended
author: kforeverisback
description: "Checks for non-binary files with CRLF/LF endings in given path. It automatically excludes .git and .github folder from search"
branding:
icon: file-text
color: gray-dark
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.directory }}
- ${{ inputs.line_ending_type }}
- ${{ inputs.include_regex }}
- ${{ inputs.exclude_regex }}
- ${{ inputs.exclude_first }}
- ${{ inputs.max_folder_depth }}
inputs:
directory:
description: Directory/Folder path to check.
required: false
default: "."
line_ending_type:
description: "Check CRLF/LF or mixed line ending.
Possible values are CRLF, LF and MIXED (case insensitive).
- CRLF: Checks files only with CRLF line endings.
- LF: Checks files only with LF line endings.
- MIXED: Checks files both with CRLF and LF (mixed) line endings."
required: false
default: "crlf"
include_regex:
description: "Regular expression for including files (using grep -E).
Note: Remember, based on the `directory` input the reges can be different. For example, default `directory` is '.', so after searching, all file paths will have `./` appended. So take that into consideration when using regex pattern"
required: false
default: ""
exclude_regex:
description: "Regular expression for excluding files (using grep -v -E).
Note: the repository is found at `/`. So take that into consideration when using regex pattern"
required: false
default: ""
exclude_first:
description: "By default the `include_regex` is applied to all files then the `exclude_pattern`.
If this is set to `true` then exclude pattern (if provided) will be applied first (possible values, 'true', 'false'"
required: false
default: "false"
max_folder_depth:
description: "Max depth of folder to search for files. Repo root directory `/` is at depth 0, files are at least at depth 1. See `man find` for more information."
required: false
default: ""