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

Commit

Permalink
fix(entrypoint.sh) - Generate changelog from previous tag or newest (#22
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ScottBrenner committed Mar 14, 2021
1 parent 9141a81 commit a7403c0
Showing 1 changed file with 3 additions and 2 deletions.
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

1 comment on commit a7403c0

@ScottBrenner
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to newest*

Please sign in to comment.