diff --git a/entrypoint.sh b/entrypoint.sh index 8319f9c..61cc7b1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,8 +5,9 @@ if [ "$1" ] && [ "$1" != "package.json" ]; then cp "$1" package.json fi -tag=$(git tag --sort version:refname | tail -n 2 | head -n 1) -changelog=$(generate-changelog -t "$tag" --file -) +previous_tag=$(git tag --sort version:refname | tail -n 2 | head -n 1) +new_tag=$(git tag --sort version:refname | tail -n 1) +changelog=$(generate-changelog -t "$previous_tag..$new_tag" --file -) changelog="${changelog//'%'/'%25'}" changelog="${changelog//$'\n'/'%0A'}"