We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 670643f commit 905596dCopy full SHA for 905596d
.github/actions/log_to_splunk/main.py
@@ -30,7 +30,7 @@ def main():
30
31
try:
32
x = requests.get(summary_url, stream=True, auth=('token',GITHUB_TOKEN))
33
-
+ x.raise_for_status()
34
except requests.exceptions.HTTPError as errh:
35
output = "GITHUB API Http Error:" + str(errh)
36
print(f"Error: {output}")
@@ -51,6 +51,9 @@ def main():
51
52
print(f"::set-output name=result::{output}")
53
return
54
+ except Exception as e:
55
+ print("Internal error", e)
56
+ return None
57
58
summary = x.json()
59
0 commit comments