From 6e6c077978957800d16a01db9949de595cc2d60e Mon Sep 17 00:00:00 2001 From: tomasrb Date: Wed, 4 May 2022 19:19:50 -0700 Subject: [PATCH] Fix url property format --- .github/workflows/custom-event-action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/custom-event-action.yml b/.github/workflows/custom-event-action.yml index e18de3f..a9ac180 100644 --- a/.github/workflows/custom-event-action.yml +++ b/.github/workflows/custom-event-action.yml @@ -34,4 +34,4 @@ jobs: env: OKAY_API_TOKEN: ${{ secrets.OKAY_API_TOKEN }} run: | - curl -X POST -H "Authorization: Bearer $OKAY_API_TOKEN" -H 'Content-Type: application/json' --data "{\"event\": \"custom\", \"uniqueKey\": [\"event_unique_id\"], \"customEventName\": \"${{ inputs.event }}\", \"timestamp\": \"$(date +%Y-%m-%dT%H:%M:%S%z)\", \"identity\": {\"user\": \"${{ inputs.user }}\", \"type\": \"sourceControlLogin\"},\"labels\":[ \"${{ inputs.label }}\" ], \"properties\": {\"event_unique_id\": \"${{ inputs.event_unique_id }}\", \"okay.url\": \"${{ inputs.url }}\", \"test.duration_ms_metric\": {\"type\": \"durationMs\", \"value\": ${{ inputs.metric1_duration_ms }}}, \"test.number_metric\": {\"type\": \"number\", \"value\": ${{ inputs.metric2_number }}}, \"test.count_metric\": {\"type\": \"count\", \"value\": ${{ inputs.metric3_count }}} }}" https://app.okayhq.com/api/events/v1 \ No newline at end of file + curl -X POST -H "Authorization: Bearer $OKAY_API_TOKEN" -H 'Content-Type: application/json' --data "{\"event\": \"custom\", \"uniqueKey\": [\"event_unique_id\"], \"customEventName\": \"${{ inputs.event }}\", \"timestamp\": \"$(date +%Y-%m-%dT%H:%M:%S%z)\", \"identity\": {\"user\": \"${{ inputs.user }}\", \"type\": \"sourceControlLogin\"},\"labels\":[ \"${{ inputs.label }}\" ], \"properties\": {\"event_unique_id\": \"${{ inputs.event_unique_id }}\", \"okay_url\": \"${{ inputs.url }}\", \"test.duration_ms_metric\": {\"type\": \"durationMs\", \"value\": ${{ inputs.metric1_duration_ms }}}, \"test.number_metric\": {\"type\": \"number\", \"value\": ${{ inputs.metric2_number }}}, \"test.count_metric\": {\"type\": \"count\", \"value\": ${{ inputs.metric3_count }}} }}" https://app.okayhq.com/api/events/v1 \ No newline at end of file