Fix tag push failure in build script
This commit is contained in:
@@ -229,10 +229,12 @@ git_commit_and_push() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if git push --tags > /dev/null 2>&1; then
|
# Push only the new tag to avoid conflicts with existing tags
|
||||||
print_success "Pushed tags"
|
if git push origin "$NEW_VERSION" > /dev/null 2>&1; then
|
||||||
|
print_success "Pushed tag: $NEW_VERSION"
|
||||||
else
|
else
|
||||||
print_warning "Failed to push tags"
|
print_error "Failed to push tag: $NEW_VERSION"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user