2021-04-19 05:38:50 +00:00
|
|
|
#! /bin/bash
|
|
|
|
# This script is used in release-it as changelog
|
|
|
|
# export RELEASE_MASTER=1 to release master changelog
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
master_version=$(git describe --tags --abbrev=0 --match "v[0-9].[0-9].[0-9]")
|
|
|
|
latest_verion=$(git describe --tags --abbrev=0)
|
|
|
|
|
|
|
|
if [[ $RELEASE_MASTER -eq 1 ]]; then
|
2022-10-04 03:35:23 +00:00
|
|
|
auto-changelog --stdout -t changelog-master.hbs --starting-version "$master_version" --commit-limit 3
|
2021-04-19 05:38:50 +00:00
|
|
|
else
|
2022-10-04 03:35:23 +00:00
|
|
|
auto-changelog --stdout --starting-version "$latest_verion" --unreleased --commit-limit 0
|
2021-04-19 05:38:50 +00:00
|
|
|
fi
|