Modify bb64/publish.sh
This commit is contained in:
@ -79,6 +79,13 @@ fi
|
|||||||
|
|
||||||
# Create and push git tag
|
# Create and push git tag
|
||||||
echo "Creating git tag $TAG..."
|
echo "Creating git tag $TAG..."
|
||||||
|
|
||||||
|
# Configure git identity if not set (for CI environments)
|
||||||
|
if ! git config user.email >/dev/null 2>&1; then
|
||||||
|
git config user.email "ci@gitea.jde.nz"
|
||||||
|
git config user.name "CI Bot"
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if tag already exists
|
# Check if tag already exists
|
||||||
if git rev-parse "$TAG" >/dev/null 2>&1; then
|
if git rev-parse "$TAG" >/dev/null 2>&1; then
|
||||||
echo "Tag $TAG already exists, deleting it first..."
|
echo "Tag $TAG already exists, deleting it first..."
|
||||||
|
Reference in New Issue
Block a user