From 940bee549fed26aebe89b392ca8cc22e31288b4d Mon Sep 17 00:00:00 2001 From: Joseph Montanaro Date: Tue, 23 Nov 2021 15:51:17 -0800 Subject: [PATCH] lowercase drone_api_token --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index a466ca6..fe59c6e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -37,7 +37,7 @@ steps: - | if [[ $COMMIT_HASH != $IMAGE_COMMIT_HASH ]]; then echo -e '\033[1;33mUpdates available, triggering server build.\033[0m' - 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 else echo -e '\033[0;32mServer is already up to date.\033[0m' @@ -53,7 +53,7 @@ steps: - | if [[ $LATEST_VERSION != $CURRENT_VERSION ]]; then echo -e '\033[1;33mNew release available, triggering runner build.\033[0m' - 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=runner-build else echo -e '\033[0;32mRunner is already up to date.\033[0m'