Skip to content

Commit 479e429

Browse files
author
aehnh
committed
try again yo
1 parent 7f6d131 commit 479e429

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/log.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,13 @@ jobs:
2727
AWS_REGION: ${{ secrets.AWS_REGION }}
2828
run: |
2929
TIMESTAMP=$(date +%s000)
30-
LOG_EVENT_JSON="[{\"timestamp\":$TIMESTAMP,\"message\":\"{\\\"application\\\":\\\"complete\\\",\\\"platform\\\":\\\"react\\\",\\\"run_type\\\":\\\"commitly\\\",\\\"execution_time\\\":0,\\\"passed\\\":0,\\\"failed\\\":0,\\\"link\\\":\\\"https://github.com/corbado/javascript/actions/runs/${GITHUB_RUN_ID}\\\"}\"}]"
30+
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}}]')
3139
aws logs put-log-events --log-group-name "test-results-board" --log-stream-name "$LOG_STREAM_NAME" --log-events "$LOG_EVENT_JSON"

0 commit comments

Comments
 (0)