replaced correct variable name to content
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Gyorgy Berenyi
2024-06-13 18:43:52 +00:00
parent 24597455c3
commit f0458c9aef

View File

@@ -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: