Activate publishing of draft releases... (#5062)

* Activate publishing of draft releases...

... And fix the message sending (missing parameter).

* publish_draft_release.sh now checks latest...

... release on github rather than just a tag
This commit is contained in:
s3krit
2020-02-26 14:36:02 +01:00
committed by GitHub
parent 1f8c738000
commit a2ff54dfa9
2 changed files with 13 additions and 3 deletions
+8
View File
@@ -14,6 +14,14 @@ sanitised_git_logs(){
sed 's/^/* /g'
}
# Returns the last published release on github
# repo: 'organization/repo'
# Usage: last_github_release "$repo"
last_github_release(){
curl -H "Authorization: token $GITHUB_RELEASE_TOKEN" \
-s "$api_base/$1/releases/latest" | jq '.tag_name'
}
# Checks whether a tag on github has been verified
# repo: 'organization/repo'
# tagver: 'v1.2.3'