added install sh push to local-install repo
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -39,10 +39,12 @@ steps:
|
||||
commands:
|
||||
- apk --update add curl jq
|
||||
- URL="$GIT_URL/api/v1/repos/$REPO/contents/$FILE_PATH"
|
||||
- echo $URL
|
||||
- |
|
||||
SHA=$(curl -s -H "Authorization: token $TOKEN" -H "Accept: application/json" $URL | jq -r '.sha')
|
||||
- echo $SHA
|
||||
ZONE=$(cat /drone/src/install.sh | base64 -w0)
|
||||
DATA=$(printf '{"message": "Modifying install.sh", "sha": "'$SHA'", "content": "%s", "branch": "main"}' "$ZONE")
|
||||
curl -X PUT -s -H "Authorization: token $TOKEN" -H "Accept: application/json" -H "Content-Type: application/json" -d "$DATA" $URL
|
||||
echo $ZONE
|
||||
|
||||
when:
|
||||
branch:
|
||||
|
Reference in New Issue
Block a user