Remove multiline. (#230)

This commit is contained in:
Julian Rex
2020-03-19 00:38:00 -04:00
committed by GitHub
parent f719de9ff4
commit be34d3f420

View File

@@ -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