Skip to content

Commit

Permalink
try again yo
Browse files Browse the repository at this point in the history
  • Loading branch information
aehnh committed Feb 11, 2025
1 parent 7f6d131 commit 479e429
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/log.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,13 @@ jobs:
AWS_REGION: ${{ secrets.AWS_REGION }}
run: |
TIMESTAMP=$(date +%s000)
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}\\\"}\"}]"
LOG_EVENT_JSON=$(jq -n --arg ts "$TIMESTAMP" \
--arg app "complete" \
--arg platform "react" \
--arg run_type "commitly" \
--argjson exec_time 0 \
--argjson passed 0 \
--argjson failed 0 \
--arg link "https://github.com/corbado/javascript/actions/runs/${GITHUB_RUN_ID}" \
'[{timestamp: ($ts|tonumber), message: {application: $app, platform: $platform, run_type: $run_type, execution_time: $exec_time, passed: $passed, failed: $failed, link: $link}}]')
aws logs put-log-events --log-group-name "test-results-board" --log-stream-name "$LOG_STREAM_NAME" --log-events "$LOG_EVENT_JSON"

0 comments on commit 479e429

Please sign in to comment.