When a new tag is created I want to validate in the pipeline configuration that the new tag version is correct and the same than python setup.py. I added this script to the pipeline but looks like is not working.
script:
- VERSION=$(python setup.py --version)
- if [ $CI_COMMIT_TAG != $VERSION ]; then
- echo "Tag does not match the correct version"
- exit 1; fi