brandedoutcast / publish-nuget

📦 GitHub action to automate publishing NuGet packages when project version changes
https://github.com/marketplace/actions/publish-nuget
MIT License
197 stars 101 forks source link

A better way to detect version change #6

Closed brandedoutcast closed 4 years ago

brandedoutcast commented 4 years ago

The action fails to detect a new version if the change is not part of the latest commit. It's due to the current implementation looking at last 2 commits to spot any difference

A better way would be look at current version in the project file & look for any existing tag with that version, if none exists then assume it's a new version & tag it