Skip to content

Commit 2442319

Browse files
author
aehnh
committed
try again yo
1 parent e73f38f commit 2442319

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/log.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ jobs:
2828
run: |
2929
TIMESTAMP=$(date +%s000)
3030
LOG_EVENT_JSON=$(jq -n --arg ts "$TIMESTAMP" \
31-
--arg app "complete" \
32-
--arg platform "react" \
33-
--arg run_type "commitly" \
34-
--argjson exec_time 0 \
35-
--argjson passed 0 \
36-
--argjson failed 0 \
37-
--arg link "https://github.com/corbado/javascript/actions/runs/${GITHUB_RUN_ID}" \
38-
'[{timestamp: ($ts|tonumber), message: ({application: $app, platform: $platform, run_type: $run_type, execution_time: $exec_time, passed: $passed, failed: $failed, link: $link} | tojson)}]')
39-
aws logs put-log-events --log-group-name "test-results-board" --log-stream-name "$LOG_STREAM_NAME" --log-events "$LOG_EVENT_JSON"
31+
--arg app "complete" \
32+
--arg platform "react" \
33+
--arg run_type "commitly" \
34+
--argjson exec_time 0 \
35+
--argjson passed 0 \
36+
--argjson failed 0 \
37+
--arg link "https://github.com/corbado/javascript/actions/runs/${GITHUB_RUN_ID}" \
38+
'[{timestamp: ($ts|tonumber), message: {application: $app, platform: $platform, run_type: $run_type, execution_time: $exec_time, passed: $passed, failed: $failed, link: $link}}] | .[0].message | @json')
39+
FINAL_LOG_EVENT_JSON=$(jq -n --arg ts "$TIMESTAMP" --arg msg "$LOG_EVENT_JSON" '[{timestamp: ($ts|tonumber), message: $msg}]')
40+
aws logs put-log-events --log-group-name "test-results-board" --log-stream-name "$LOG_STREAM_NAME" --log-events "$FINAL_LOG_EVENT_JSON"

0 commit comments

Comments
 (0)