Closed qasimwarraich closed 10 months ago
i don't see how a fetch depth of 0 will allow you to create a changelog containing previous commits, though?
I believe it has to do with actions/checkout
performing a shallow clone of the repo.
From the actions/checkout
README:
Only a single commit is fetched by default, for the ref/SHA that triggered the workflow. Set fetch-depth: 0 to fetch all history for all branches and tags. Refer here to learn which commit $GITHUB_SHA points to for different events.
[ Quoting @.***> in "Re: [mmarkdown/mmark] Set `fetch-de..." ]
I believe it has to do with actions/checkout performing a shallow clone of the repo.
From the actions/checkout README:
Only a single commit is fetched by default, for the ref/SHA that triggered the workflow. Set fetch-depth: 0 to fetch all history for all branches and tags. Refer here to learn which commit $GITHUB_SHA points to for different events.
ah, thanks for setting me straight.
Cheers!
This should add the missing changelog. Seems like a
fetch-depth
of 0 needs to be set for the action to work properly. This is mentioned here in the docs for thegoreleaser-action
.I setup a little test repo to test these changes out. Feel free to take a look: CI workflow file Releases w/ changelog
Resolves: #217