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: