build: List PRs in release notes

This commit is contained in:
stefanprodan
2020-02-15 00:00:15 +02:00
parent e1bb8e741e
commit 3a5a0faa4f
3 changed files with 13 additions and 1 deletions

View File

@@ -3,6 +3,8 @@ set -e
TAR_FILE="/tmp/goreleaser.tar.gz"
RELEASES_URL="https://github.com/goreleaser/goreleaser/releases"
GH_REL_DIR="github-release-notes-linux-amd64-0.2.0"
GH_REL_URL="https://github.com/buchanae/github-release-notes/releases/download/0.2.0/${GH_REL_DIR}.tar.gz"
test -z "$TMPDIR" && TMPDIR="$(mktemp -d)"
last_version() {
@@ -21,8 +23,10 @@ download() {
rm -f "$TAR_FILE"
curl -s -L -o "$TAR_FILE" \
"$RELEASES_URL/download/$VERSION/goreleaser_$(uname -s)_$(uname -m).tar.gz"
curl -sSL ${GH_REL_URL} | tar xz && sudo mv ${GH_REL_DIR}/github-release-notes /usr/local/bin/ && rm -rf ${GH_REL_DIR}
}
download
tar -xf "$TAR_FILE" -C "$TMPDIR"
"${TMPDIR}/goreleaser" "$@"
"${TMPDIR}/goreleaser" --release-notes <(github-release-notes -org weaveworks -repo flagger -since-latest-release)