File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,11 @@ invoke args = do
76
76
runnerDebug = isJust (lookup " RUNNER_DEBUG" env)
77
77
}
78
78
79
+ when (runnerDebug context) $ do
80
+ putStrLn " Output from hlint:"
81
+ putStrLn out
82
+ putStrLn " "
83
+
79
84
case exitCode of
80
85
ExitSuccess -> annotate context $ fromString out
81
86
_ -> putStrLn err >> exitWith exitCode
@@ -89,6 +94,7 @@ annotate context output = do
89
94
when (runnerDebug context) $ do
90
95
putStrLn " rewritten output:"
91
96
print annotated'
97
+ putStrLn " "
92
98
93
99
case annotated' of
94
100
Nothing -> die $ " invalid encoding\n " <> show output <> " \n "
@@ -103,7 +109,12 @@ send context output = do
103
109
let endpoint' = toCall env output
104
110
case endpoint' of
105
111
Just endpoint -> call settings endpoint
106
- _ -> die " not all necessary environment variables available"
112
+ _ -> do
113
+ when (runnerDebug context) $ do
114
+ putStrLn " environment variables"
115
+ print env
116
+ putStrLn " "
117
+ die " not all necessary environment variables available"
107
118
108
119
call :: GitHubSettings -> GHEndpoint -> IO ()
109
120
call settings endpoint =
You can’t perform that action at this time.
0 commit comments