From e6836ba1357f0a9fe12875f3a5ebaa665875f10e Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 8 Aug 2017 11:12:53 +0200 Subject: [PATCH] Add description to release created Signed-off-by: Knut Ahlers --- SHA256SUMS | 2 +- golang.sh | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/SHA256SUMS b/SHA256SUMS index 7b669e6..b509465 100644 --- a/SHA256SUMS +++ b/SHA256SUMS @@ -1,2 +1,2 @@ 05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh -e1d40e89ab12c49c156f92ccc5ed03d1d816e6d69e5c4d86d064ddebb388c3ac golang.sh +7a138f44b13a04fbe55af6f9b50a84f365594024b131207040dee21bfb7248dc golang.sh diff --git a/golang.sh b/golang.sh index f9c1207..a850ebc 100755 --- a/golang.sh +++ b/golang.sh @@ -44,7 +44,15 @@ set -x sha256sum ${REPO}_* > SHA256SUMS # Create a drafted release -github-release release --user ${GHUSER} --repo ${REPO} --tag ${DEPLOYMENT_TAG} --name ${DEPLOYMENT_TAG} --draft || true +DESC="${VERSION}" +if [ -f History.md ]; then + sv=$(echo ${VERSION} | sed 's/^v//') + DESC=$(awk "/# ${sv}/{flag=1;next} /# /{flag=0} flag" History.md | head -n -1 | tail -n +2) +fi + +github-release release --user ${GHUSER} --repo ${REPO} \ + --tag ${DEPLOYMENT_TAG} --name ${DEPLOYMENT_TAG} \ + --description ${DESC} --draft || true # Upload build assets for file in ${REPO}_* SHA256SUMS; do