I need to have the version file in my git repository.
I have release process (pipeline) that triggered manually when we decide to do release, this process should do:
- clone the repo
- run tests
- calculate the new version
- update the version file with new version
- commit and push the new version file
- create tag/branch in git with the new version
Now, when I will do clone from this tag, the version file should contains the correct version.
What happened if when the tests are running (#2) someone else commit changes to the repo, does the tag that generated in #6 will contains also the changes that not tested in release process?
Does the logic of this flow is correct, or I have better way to manage the version file?