Skip to content

Commit 6732332

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

File tree

1 file changed

+4
-0
lines changed
  • .github/actions/log_to_splunk

1 file changed

+4
-0
lines changed

.github/actions/log_to_splunk/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@ def main():
6161

6262
summary.pop('head_repository')
6363

64+
print(summary)
65+
6466
event={'event':json.dumps(summary),'sourcetype':SPLUNK_SOURCETYPE,'source':'workflow_sumary','host':host,'time':summary["updated_at"]}
6567
event=json.dumps(event)
6668

69+
print(event)
70+
6771
x=requests.post(SPLUNK_HEC_URL, data=event, headers=headers)
6872

6973

0 commit comments

Comments
 (0)