script fixes
This commit is contained in:
parent
0519ee682a
commit
d9028d98d6
|
|
@ -6,7 +6,8 @@ if [ "$TRAVIS_COMMIT_RANGE" = "" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CHANGES=$(git diff --name-only --diff-filter=AM $TRAVIS_COMMIT_RANGE)
|
CHANGES=$(git diff --name-only --diff-filter=AM $TRAVIS_COMMIT_RANGE)
|
||||||
echo "CHANGED: $CHANGES"
|
echo "CHANGED (per git):"
|
||||||
|
echo "$CHANGES"
|
||||||
|
|
||||||
declare -a DASHMAP
|
declare -a DASHMAP
|
||||||
|
|
||||||
|
|
@ -121,6 +122,8 @@ function deploy {
|
||||||
|
|
||||||
curl -H "Content-Type: multipart/form-data" -H "Authorization: Bearer ${GRAFANA_API_KEY}" \
|
curl -H "Content-Type: multipart/form-data" -H "Authorization: Bearer ${GRAFANA_API_KEY}" \
|
||||||
"https://grafana.com/api/dashboards/$i/revisions" --form "json=@${WHERE}${DASHMAP[$i]};type=application/json"
|
"https://grafana.com/api/dashboards/$i/revisions" --form "json=@${WHERE}${DASHMAP[$i]};type=application/json"
|
||||||
|
echo
|
||||||
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue