print token length

This commit is contained in:
Joseph Montanaro 2021-11-23 15:53:16 -08:00
parent 940bee549f
commit d300a85f09

View File

@ -37,6 +37,7 @@ steps:
- | - |
if [[ $COMMIT_HASH != $IMAGE_COMMIT_HASH ]]; then if [[ $COMMIT_HASH != $IMAGE_COMMIT_HASH ]]; then
echo -e '\033[1;33mUpdates available, triggering server build.\033[0m' echo -e '\033[1;33mUpdates available, triggering server build.\033[0m'
echo "API token length:" $($drone_api_token | wc -c)
curl -X POST -H "Authorization: Bearer $drone_api_token" \ curl -X POST -H "Authorization: Bearer $drone_api_token" \
https://drone.jfmonty2.com/api/repos/jfmonty2/drone/builds/$DRONE_BUILD_NUMBER/promote?target=server-build https://drone.jfmonty2.com/api/repos/jfmonty2/drone/builds/$DRONE_BUILD_NUMBER/promote?target=server-build
else else