This commit is contained in:
11
.drone.yml
11
.drone.yml
@@ -32,10 +32,15 @@ steps:
|
||||
environment:
|
||||
TOKEN:
|
||||
from_secret: TOKEN
|
||||
GIT_URL: https://git.format.hu
|
||||
REPO: public/local-install
|
||||
FILE_PATH: install.sh
|
||||
|
||||
commands:
|
||||
# - apk --update add curl
|
||||
- echo $TOKEN > /tmp/token
|
||||
- cat /tmp/token
|
||||
- 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'"
|
||||
|
||||
when:
|
||||
branch:
|
||||
|
Reference in New Issue
Block a user