testing variables
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
gyurix
2024-06-13 14:48:46 +02:00
parent cd6b540728
commit 98f7790e9b

View File

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