👷 ci(circleci): enhance tag generation logic
- add condition to handle empty package parameters for tagging - ensure consistent tag format whether package parameter is present or not Signed-off-by: Jeremiah Russell <jerry@jrussell.ie>
This commit is contained in:
@@ -91,7 +91,11 @@ commands:
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TAG="<< parameters.package >>-v${VERSION}"
|
if [ "" = "<< parameters.package >>" ]; then
|
||||||
|
TAG="v${VERSION}"
|
||||||
|
else
|
||||||
|
TAG="<< parameters.package >>-v${VERSION}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Fetch tags from remote
|
# Fetch tags from remote
|
||||||
git fetch --tags
|
git fetch --tags
|
||||||
|
|||||||
Reference in New Issue
Block a user