You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,9 @@ GitHub action that runs `csvlint`.
4
4
5
5
The project is heavily based on salt-lint-action, which was created by Roald Nefs and the action from blackstar257 at [docker-csvlint](https://github.com/blackstar257/docker-csvlint).
6
6
7
-
This action adds few additional parameters like file paths and patterns to `docker-csvlint`. Also added is a configurable exit status.
7
+
This action adds few additional parameters like file paths and patterns to `docker-csvlint`.
8
+
9
+
Also added is the ability to use an external file list and a configurable exit status.
8
10
9
11
10
12
@@ -25,14 +27,17 @@ jobs:
25
27
- name: Run csv-lint
26
28
uses: kcheriyath/csvlinter@main
27
29
with:
30
+
file_list: "space delmited list of files including path"
28
31
find_pattern: "*.csv"
29
32
find_path: "./data"
30
33
fail_on_error: "false"
31
34
extra_params: "--lazyquotes"
32
35
```
33
36
34
37
35
-
find_path: (optional) when defined, find command is used to search for csv files in the path, relative to project root. defaults to . (`dot`)
38
+
file_list: "(optional) if set, linter will use this file list only and find* parameters are ignored. Use as a static list or with jitterbit/get-changed-files to check only new files."
39
+
40
+
find_path: (optional) if set, find command is used to search for csv files in the path, relative to project root. defaults to . (`dot`)
36
41
37
42
find_pattern: (optional) defaults to *.csv.
38
43
@@ -53,10 +58,11 @@ NOTE: The default settings validate that a CSV conforms to [RFC 4180](https://to
53
58
54
59
### Todo
55
60
56
-
-[ ] Ability to use a file list for only new/changed files.
61
+
57
62
58
63
### Done ✓
59
64
60
65
-[x] Configurable exit status with fail_on_error.
61
66
-[x] File path
62
67
-[x] File pattern
68
+
-[x] Ability to use a file list for only new/changed files.
Copy file name to clipboardExpand all lines: action.yml
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,9 @@ name: "csvlinter"
2
2
description: "CSV Linter action based on csvlint"
3
3
author: "K Cheriyath"
4
4
inputs:
5
+
file_list: # id of input
6
+
description: "(optional) when defined, linter will use this file list only and find* parameters are ignored. Use as a static list or with jitterbit/get-changed-files to check only new files."
7
+
required: false
5
8
find_path: # id of input
6
9
description: "(optional) when defined, find command is used to search for csv files in the path, relative to project root. defaults to ."
0 commit comments