This commit is contained in:
11
.drone.yml
11
.drone.yml
@@ -32,10 +32,15 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
TOKEN:
|
TOKEN:
|
||||||
from_secret: TOKEN
|
from_secret: TOKEN
|
||||||
|
GIT_URL: https://git.format.hu
|
||||||
|
REPO: public/local-install
|
||||||
|
FILE_PATH: install.sh
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
# - apk --update add curl
|
- apk --update add curl jq
|
||||||
- echo $TOKEN > /tmp/token
|
- URL="$GIT_URL/api/v1/repos/$REPO/contents/$FILE_PATH"
|
||||||
- cat /tmp/token
|
- echo $URL
|
||||||
|
# - SHA="curl -s -H "Authorization: token $TOKEN" -H "Accept: application/json" $URL | jq -r '.sha'"
|
||||||
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
Reference in New Issue
Block a user