mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
17 lines
492 B
Bash
Executable File
17 lines
492 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
RELEASE=${RELEASE:-$2}
|
|
PREVIOUS_RELEASE=${PREVIOUS_RELEASE:-$1}
|
|
|
|
# ref https://stackoverflow.com/questions/1441010/the-shortest-possible-output-from-git-log-containing-author-and-date
|
|
CHANGELOG=$(git log --no-merges --date=short --pretty=format:'- %h %an %ad %s' "${PREVIOUS_RELEASE}".."${RELEASE}")
|
|
|
|
cat <<EOF
|
|
## ${RELEASE}
|
|
KubeVPN ${RELEASE} is available now !
|
|
## Installation and Upgrading
|
|
You can download binary file to use it directly
|
|
## Changelog
|
|
${CHANGELOG}
|
|
EOF
|