t
parent
e1d21768e1
commit
1110c61a66
15
lib
15
lib
|
@ -66,18 +66,3 @@ function delete-tag(){
|
|||
-Url "https://gitea.kdiva.ru/api/v1/repos/${DRONE_REPO}/tags/latest" \
|
||||
-H 'Authorization: Bearer 10e4af53e553aacb905766512e36487492d61a66'
|
||||
}
|
||||
|
||||
function vars() {
|
||||
echo "DRONE_SEMVER $DRONE_SEMVER"
|
||||
echo "DRONE_REPO_LINK $DRONE_REPO_LINK"
|
||||
echo "DRONE_TAG $DRONE_TAG"
|
||||
echo "KEY $KEY"
|
||||
echo "OTHER_KEY $OTHER_KEY"
|
||||
RELEASES=$(curl -X GET -Url https://gitea.kdiva.ru/api/v1/repos/${DRONE_REPO}/releases)
|
||||
RELEASES_IDS=$(jq -r '.[].id' <<< $RELEASES)
|
||||
if [[ -z "${RELEASES_IDS}" ]]; then
|
||||
echo "RELEASES_IDS id NULL"
|
||||
else
|
||||
echo "RELEASES_IDS id ${RELEASES_IDS}"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue