File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
.github/actions/log_to_splunk Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -35,25 +35,25 @@ def main():
35
35
output = "GITHUB API Http Error:" + str (errh )
36
36
print (f"Error: { output } " )
37
37
print (f"::set-output name=result::{ output } " )
38
- return
38
+ return x . status_code
39
39
except requests .exceptions .ConnectionError as errc :
40
40
output = "GITHUB API Error Connecting:" + str (errc )
41
41
print (f"Error: { output } " )
42
42
print (f"::set-output name=result::{ output } " )
43
- return
43
+ return x . status_code
44
44
except requests .exceptions .Timeout as errt :
45
45
output = "Timeout Error:" + str (errt )
46
46
print (f"Error: { output } " )
47
47
print (f"::set-output name=result::{ output } " )
48
- return
48
+ return x . status_code
49
49
except requests .exceptions .RequestException as err :
50
50
output = "GITHUB API Non catched error conecting:" + str (err )
51
51
print (f"Error: { output } " )
52
52
print (f"::set-output name=result::{ output } " )
53
- return
53
+ return x . status_code
54
54
except Exception as e :
55
55
print ("Internal error" , e )
56
- return None
56
+ return x . status_code
57
57
58
58
summary = x .json ()
59
59
You can’t perform that action at this time.
0 commit comments