Skip to content

Commit b55bbf5

Browse files
committed
Update main.py
1 parent 6732332 commit b55bbf5

File tree

1 file changed

+2
-2
lines changed
  • .github/actions/log_to_splunk

1 file changed

+2
-2
lines changed

.github/actions/log_to_splunk/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def main():
5252
print(f"::set-output name=result::{output}")
5353
return
5454

55-
summary = json.loads(x.text)
55+
summary = x.json()
5656

5757
summary.pop('repository')
5858

@@ -61,7 +61,7 @@ def main():
6161

6262
summary.pop('head_repository')
6363

64-
print(summary)
64+
print(json.dumps(summary))
6565

6666
event={'event':json.dumps(summary),'sourcetype':SPLUNK_SOURCETYPE,'source':'workflow_sumary','host':host,'time':summary["updated_at"]}
6767
event=json.dumps(event)

0 commit comments

Comments
 (0)