Commit 84575c44 authored by Vivien Kraus's avatar Vivien Kraus

Debug...

parent a2fe6bbf
Pipeline #109483 passed with stages
in 3 minutes and 34 seconds
......@@ -121,10 +121,13 @@ then
NAME="Tarot release"
TAG_NAME="$CI_COMMIT_TAG"
DESCRIPTION=$(printf "%q" $(git tag -l --format='%(contents)' "$CI_COMMIT_TAG"))
DESCRIPTION=$(git tag -l --format='%(contents)' "$CI_COMMIT_TAG")
SERVER=$(echo "$CI_API_V4_URL" | cut -d '/' -f 1)
FULL_URL="${SERVER}${URL}"
LINK="{\"name\": \"$TARFILE\", \"url\": \"$URL\"}"
ASSETS="{\"links\": [$LINK]}"
DATA="{\"name\": \"$NAME\", \"tag_name\": \"$TAG_NAME\", \"description\": \"$DESCRIPTION\", \"assets\": $ASSETS}"
DESCRIPTION_ESCAPED=$(printf "%q" "$DESCRIPTION")
DATA="{\"name\": \"$NAME\", \"tag_name\": \"$TAG_NAME\", \"description\": \"$DESCRIPTION_ESCAPED\", \"assets\": $ASSETS}"
echo "POSTing $DATA to $CI_API_V4_URL/projects/$CI_PROJECT_ID/releases"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment