Skip to content

Commit

Permalink
Compact and debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kalverra committed Dec 18, 2024
1 parent 689af11 commit 51d7d4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/flakeguard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,12 @@ jobs:
if: ${{ fromJSON(steps.results.outputs.summary).total_tests > 0 }}
run: |
echo "Sending Flakeguard results to Splunk"
jq --arg event "${{ inputs.event }}" \
jq -c --arg event "${{ inputs.event }}" \
'. | {"sourcetype": "_json", "event": {"event": $event, data: .}}' ./flakeguard-report/all-test-results.json > splunk.json
# DEBUG: Print the Splunk JSON
cat splunk.json
curl "${{ secrets.FLAKEGUARD_SPLUNK_ENDPOINT }}" \
-H "Authorization: Splunk ${{ secrets.FLAKEGUARD_SPLUNK_HEC }}" \
-d @splunk.json

0 comments on commit 51d7d4e

Please sign in to comment.