Commit 118a951f authored by Mathieu Faverge's avatar Mathieu Faverge

Fix issue with automatic generation of changelog

parent 66ddec96
......@@ -10,6 +10,7 @@ function gen_changelog()
lastline=$(( lastline - 1 ))
#echo $lastline
changelog="Changes:\n"
for i in `seq $firstline $lastline`
do
local line=$( head -n $i ChangeLog | tail -n 1 )
......@@ -17,7 +18,7 @@ function gen_changelog()
#echo $line
done
changelog="${changelog}\nWARNING: Download the source archive by clicking on the link __Download release__ above, please do not consider the link Source code to get all submodules.\n"
changelog="${changelog}\n__WARNING__: Download the source archive by clicking on the link __Download release__ above, please do not consider the link Source code to get all submodules.\n"
}
release=""
......@@ -38,6 +39,10 @@ then
exit 1
fi
# extract the change log from ChangeLog
gen_changelog
echo $changelog
# generate the archive
mkdir -p build-release
cd build-release
......@@ -48,10 +53,6 @@ make package_source
GETURL=`echo curl --request POST --header \"PRIVATE-TOKEN: $RELEASE_TOKEN\" --form \"file=\@chameleon-$RELEASE_NAME.tar.gz\" https://gitlab.inria.fr/api/v4/projects/$CI_PROJECT_ID/uploads`
MYURL=`eval $GETURL | jq .url | sed "s#\"##g"`
# extract the change log from ChangeLog
gen_changelog
echo $changelog
# Try to remove the release if it already exists
curl --request DELETE --header "PRIVATE-TOKEN: $RELEASE_TOKEN" https://gitlab.inria.fr/api/v4/projects/$CI_PROJECT_ID/releases/v$RELEASE_NAME
......
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