Skip to content

Commit 7124d74

Browse files
committed
vk/878-metrics-trigger: parameterised metrics run trigger to pick current commit
1 parent ec2fa54 commit 7124d74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ step-library:
108108
name: Trigger metrics
109109
command: |
110110
if [ -n "${MOBILE_METRICS_TOKEN}" ]; then
111-
bash -c "curl -X POST --header \"Content-Type: application/json\" --data '{\"parameters\": {\"run_ios_navigation_benchmark\": true, \"ci_ref\": $CIRCLE_BUILD_NUM }, \"target_branch\": \"main\" }' https://circleci.com/api/v2/project/github/mapbox/mobile-metrics/pipeline?circle-token=${MOBILE_METRICS_TOKEN}"
111+
bash -c "curl -X POST --header \"Content-Type: application/json\" --data '{\"parameters\": {\"run_ios_navigation_benchmark\": true, \"ci_ref\": $CIRCLE_BUILD_NUM }, \"target_branch\": \"${CIRCLE_SHA1}\" }' https://circleci.com/api/v2/project/github/mapbox/mobile-metrics/pipeline?circle-token=${MOBILE_METRICS_TOKEN}"
112112
else
113113
echo "MOBILE_METRICS_TOKEN not provided"
114114
fi

0 commit comments

Comments
 (0)