Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

fix(entrypoint.sh) - generate changelog from previous tag to newest #22

Merged
merged 1 commit into from
Mar 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'}"
Expand Down