amplitude / analytics-go

Go Amplitude Analytics SDK
MIT License
12 stars 7 forks source link

fix: update release workflow to include all commits for first release #24

Closed kevinpagtakhan closed 2 years ago

kevinpagtakhan commented 2 years ago

Summary

The release workflow assumes there has been a previously tagged commit to create the release notes. However, this is our first release so we only have 1 tag. See error below.

$ touch ".github/RELEASE-TEMPLATE.md" && git log $(git describe HEAD~ --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n  * %an <%ae>' --no-merges >> ".github/RELEASE-TEMPLATE.md"

Run touch ".github/RELEASE-TEMPLATE.md" && git log $(git describe HEAD~ --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n  * %an <%ae>' --no-merges >> ".github/RELEASE-TEMPLATE.md"
fatal: No tags can describe 'dc2d094f623f74601763b6cec2e4d4b760ad4572'.
Try --always, or create some tags.

Checklist