mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
21 lines
526 B
Bash
Executable File
21 lines
526 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
PWD=$(cd $(dirname "$0") && pwd -P)
|
|
|
|
# Find closest tag
|
|
CLOSEST_VERSION=$(git describe --tags --abbrev=0)
|
|
|
|
# Install git-chglog binary
|
|
if ! command -v git-chglog >/dev/null ; then
|
|
make git-chglog
|
|
fi
|
|
|
|
# Generate Changelog
|
|
git-chglog --config ${PWD}/../../scripts/chglog/config-release-note.yml --tag-filter-pattern v[0-9]+.[0-9]+.[0-9]+$ --output ${PWD}/../../CURRENT-RELEASE-CHANGELOG.md ${CLOSEST_VERSION}
|
|
|
|
cat ${PWD}/../../CURRENT-RELEASE-CHANGELOG.md
|