mathieudutour / github-tag-action

A Github Action to automatically bump and tag master, on merge, with the latest SemVer formatted version. Works on any platform.
https://github.com/marketplace/actions/github-tag
MIT License
628 stars 197 forks source link

Version is not updated in certain cases #221

Open Chetan1318 opened 3 weeks ago

Chetan1318 commented 3 weeks ago

Steps:

  1. Create branch - CICD-304 Push some code into that branch and trigger GitHub action workflow It will generate version like v1.0.1-CICD-304.0 (Working as expected)

  2. Create another branch - CICD-304-Test Push some code into that branch and trigger GitHub action workflow It will generate version like v1.0.1-CICD-304-Test.0 (Working as expected)

  3. Now if we push the code into branch CICD-304, and workflow ran, it is giving error This tag already exists. Skipping the tag creation. Ideally it should create version like v1.0.1-CICD-304.1, but it is not. and it is showing previous version as v1.0.1-CICD-304-Test.0

Chetan1318 commented 3 weeks ago

Workflow file

create_version.yml.txt