File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,18 @@ Whether you want to fail on warnings or not.
52
52
53
53
Default : ` false`
54
54
55
+ # ## `failOnWarnings`
56
+
57
+ Whether you want to fail on warnings or not.
58
+
59
+ Default : ` false`
60
+
61
+ # ## `failOnErrors`
62
+
63
+ Whether you want to fail on errors or not. Still outputs the results, just forces the action to pass even if errors are detected.
64
+
65
+ Default : ` true`
66
+
55
67
# ## `helpURL`
56
68
57
69
Link to a page explaining your commit message convention.
Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ const { GITHUB_EVENT_NAME, GITHUB_SHA } = process.env
16
16
17
17
const configPath = resolve ( process . env . GITHUB_WORKSPACE , getInput ( 'configFile' ) )
18
18
19
- const failOnErrors = getInput ( 'failOnErrors' )
20
-
21
19
const getCommitDepth = ( ) => {
22
20
const commitDepthString = getInput ( 'commitDepth' )
23
21
if ( ! commitDepthString ?. trim ( ) ) return null
@@ -147,7 +145,7 @@ const showLintResults = async ([from, to]) => {
147
145
148
146
if ( hasOnlyWarnings ( lintedCommits ) ) {
149
147
handleOnlyWarnings ( formattedResults )
150
- } else if ( formattedResults && failOnErrors === 'false' ) {
148
+ } else if ( formattedResults && getInput ( ' failOnErrors' ) === 'false' ) {
151
149
// https://github.com/actions/toolkit/tree/master/packages/core#exit-codes
152
150
// this would be a good place to implement the setNeutral() when it's eventually implimented.
153
151
// for now it can pass with a check mark.
You can’t perform that action at this time.
0 commit comments