f
parent
4e2e32093d
commit
37da17d74e
2
lib
2
lib
|
@ -16,7 +16,7 @@ function create-release(){
|
||||||
if [[ $1 == 'latest' ]]; then
|
if [[ $1 == 'latest' ]]; then
|
||||||
echo "Deleting old latest release"
|
echo "Deleting old latest release"
|
||||||
RELEASE_LIST=$(curl -X GET -Url https://gitea.kdiva.ru/api/v1/repos/modules/sc-items/releases)
|
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
|
delete-release $LATEST_RELEASE_ID
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue