From 8a9083d1967fe4cb9f71b25bf1df38faf741cfa5 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Fri, 12 May 2023 08:36:49 +0200 Subject: [PATCH] Fix: Wrong var name --- plugin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.sh b/plugin.sh index d1f37cf..f769fd8 100644 --- a/plugin.sh +++ b/plugin.sh @@ -25,7 +25,7 @@ fi RES=$(curl --request POST \ --url "https://$PLUGIN_DOMAIN/api/v1/repos/$DRONE_REPO/pulls" \ --header "Content-Type: application/json" \ - --header "Authorization: token $APIKEY" \ + --header "Authorization: token $PLUGIN_APIKEY" \ -F \ --data "{ \"title\": \"$PLUGIN_TITLE\", @@ -44,7 +44,7 @@ if [ "${PLUGIN_MERGE:-false}" = true ]; then curl --request POST \ --url "https://$PLUGIN_DOMAIN/api/v1/repos/$DRONE_REPO/pulls/$ID/merge" \ --header 'Content-Type: application/json' \ - --header "Authorization: token $APIKEY" \ + --header "Authorization: token $PLUGIN_APIKEY" \ -F \ --data "{ \"do\": \"merge\",