elgohr / Publish-Docker-Github-Action

A Github Action used to build and publish Docker images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`tag_semver` does not recognize pre-releases

Licenser opened this issue · comments

Describe the bug

semver pre-release suffixes as defined in section 9 of the semver specification are not recognized correctly.

This manifests in the situation that for pre-releases a full roll-up of versions is done. For example we released 0.9.2-alpha.2 this leads to the tags 0.9.2-alpha.2, 0.9-alpha.2, and 0-alpha.2 being created.

To Reproduce

Release with a semver tag with a pre-release suffix.

Expected behavior

For pre-releases, I would expect no rollup being done.

Additional context

an example: https://github.com/tremor-rs/tremor-runtime/packages/490431/versions

Thank you bringing that up! Sounds good to me