Skip to content
Snippets Groups Projects
Commit 67332a5d authored by Raghunandan Netrapalli Madhusudhan's avatar Raghunandan Netrapalli Madhusudhan
Browse files

Version check based on regex match

parent f8621dc5
No related branches found
No related tags found
2 merge requests!271Version check based on regex match,!270Version check based on regex match
Pipeline #62498 passed
...@@ -40,7 +40,7 @@ if [[ $exit_status -ne 0 ]]; then ...@@ -40,7 +40,7 @@ if [[ $exit_status -ne 0 ]]; then
fi fi
# Check if the output is exactly the tag name (ignoring 'v' prefix) # Check if the output is exactly the tag name (ignoring 'v' prefix)
if [[ "${version_output#v}" == "${TAG_NAME#v}" ]]; then if [[ "$version_output" =~ ${TAG_NAME#v}$ ]]; then
echo "Version is correctly set: $version_output" echo "Version is correctly set: $version_output"
else else
echo "Version is falsely set: $version_output" echo "Version is falsely set: $version_output"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment