Skip to content
Snippets Groups Projects
Commit f6344a93 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

release: checkout if tag exists

parent a3f209e1
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,8 @@ rm -vf *.tar* /tmp/*.tar* ...@@ -13,6 +13,8 @@ rm -vf *.tar* /tmp/*.tar*
if $(grep -q "v$TAG" <<< $(git tag)) if $(grep -q "v$TAG" <<< $(git tag))
then then
echo -e "\n!!! Ce tag existe !!!\n" echo -e "\n!!! Ce tag existe !!!\n"
git checkout "v$TAG"
git submodule update --init
else else
git tag -s "v$TAG" -m "Release v$TAG" git tag -s "v$TAG" -m "Release v$TAG"
fi fi
......
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