From f0458c9aef45042ebedad988283ca494bd39e297 Mon Sep 17 00:00:00 2001 From: Gyorgy Berenyi Date: Thu, 13 Jun 2024 18:43:52 +0000 Subject: [PATCH] replaced correct variable name to content --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 39034cc..eabf5d3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,8 +41,8 @@ steps: - URL="$GIT_URL/api/v1/repos/$REPO/contents/$FILE_PATH" - | SHA=$(curl -s -H "Authorization: token $TOKEN" -H "Accept: application/json" $URL | jq -r '.sha') - ZONE=$(cat /drone/src/install.sh | base64 -w0) - DATA=$(printf '{"message": "Modifying install.sh", "sha": "'$SHA'", "content": "%s", "branch": "main"}' "$ZONE") + CONTENT=$(cat /drone/src/install.sh | base64 -w0) + DATA=$(printf '{"message": "Modifying install.sh", "sha": "'$SHA'", "content": "%s", "branch": "main"}' "$CONTENT") curl -X PUT -s -H "Authorization: token $TOKEN" -H "Accept: application/json" -H "Content-Type: application/json" -d "$DATA" $URL when: