f
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

pull/4/head
dmitry.kirdyashkin 2023-07-22 01:53:58 +03:00
parent 4e2e32093d
commit 37da17d74e
1 changed files with 1 additions and 1 deletions

2
lib
View File

@ -16,7 +16,7 @@ function create-release(){
if [[ $1 == 'latest' ]]; then
echo "Deleting old latest release"
RELEASE_LIST=$(curl -X GET -Url https://gitea.kdiva.ru/api/v1/repos/modules/sc-items/releases)
LATEST_RELEASE_ID=(jq -r '.[] | select(.tag_name=="latest") | .id' <<< $RELEASE_LIST)
LATEST_RELEASE_ID=$(jq -r '.[] | select(.tag_name=="latest") | .id' <<< $RELEASE_LIST)
delete-release $LATEST_RELEASE_ID
fi