diff --git a/circle.yml b/circle.yml index f9330b575..30f78e9d4 100644 --- a/circle.yml +++ b/circle.yml @@ -421,15 +421,10 @@ jobs: #platform/ios/scripts/metrics.sh - run: name: Trigger metrics - command: > + command: | if [[ $CIRCLE_BRANCH == master ]]; then if [ -n "${MOBILE_METRICS_TOKEN}" ]; then - curl - -u ${CIRCLE_CI_TOKEN}: - -X POST - --header "Content-Type: application/json" - --data '{"parameters": {"run_ios_maps_benchmark": true, "ci_ref" : $CIRCLE_BUILD_NUM }, "branch": "master"}' - https://circleci.com/api/v2/project/github/mapbox/mobile-metrics/pipeline + curl -u ${CIRCLE_CI_TOKEN}: -X POST --header "Content-Type: application/json" --data '{"parameters": {"run_ios_maps_benchmark": true, "ci_ref" : $CIRCLE_BUILD_NUM }, "branch": "master"}' https://circleci.com/api/v2/project/github/mapbox/mobile-metrics/pipeline else echo "MOBILE_METRICS_TOKEN not provided" fi