timbertson / autorelease-tagger-action

Generate & tag versions based on git history
3 stars 4 forks source link

Next version can clash with existing tag #2

Closed timbertson closed 3 years ago

timbertson commented 3 years ago

With the following sequence:

Possible fixes / workarounds:

Similar issues on push:

There's a risk of this being a problem on master too, if you have multiple jobs trying to bump the version concurrently. But:

timbertson commented 3 years ago

Silly me, I did implement option 4 (for a PR, run describe on the destination branch instead of HEAD):

https://github.com/timbertson/autorelease-tagger-action/blob/4b43cdbd14e37a49e5ae8f60b533d3530fbbf21b/lib.js#L331-L354