mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-01-11 19:56:44 +00:00
feat: Update publish script to handle existing tags gracefully and improve user feedback
This commit is contained in:
parent
9d95232e69
commit
2c7d3562f6
1 changed files with 5 additions and 3 deletions
|
|
@ -412,9 +412,11 @@ Changes include:
|
|||
if [[ "$FORCE" == true ]]; then
|
||||
print_warning "Tag v$VERSION exists on remote, force mode enabled - will overwrite"
|
||||
else
|
||||
print_error "Tag v$VERSION already exists on remote repository"
|
||||
print_error "Use --force flag to overwrite, or choose a different version"
|
||||
exit 1
|
||||
print_warning "Tag v$VERSION already exists on remote repository"
|
||||
print_warning "Skipping publishing as this version has already been published"
|
||||
print_status "Use --force flag to overwrite if needed"
|
||||
# Exit gracefully - this is not an error, just means the version was already published
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue