Enable push feature
This commit is contained in:
@@ -186,6 +186,7 @@ func main() {
|
|||||||
noCommit := flag.Bool("no-commit", false, "Do not create a commit")
|
noCommit := flag.Bool("no-commit", false, "Do not create a commit")
|
||||||
tag := flag.Bool("tag", false, "Add a git tag")
|
tag := flag.Bool("tag", false, "Add a git tag")
|
||||||
noTag := flag.Bool("no-tag", false, "Do not add a git tag")
|
noTag := flag.Bool("no-tag", false, "Do not add a git tag")
|
||||||
|
push := flag.Bool("push", false, "Force push to repository")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
// Обработка флагов
|
// Обработка флагов
|
||||||
@@ -217,6 +218,10 @@ func main() {
|
|||||||
gitTag(bc, newVersion)
|
gitTag(bc, newVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if *push {
|
||||||
|
gitPush(bc, newVersion)
|
||||||
|
}
|
||||||
|
|
||||||
// Обновляем конфигурационный файл
|
// Обновляем конфигурационный файл
|
||||||
if err := updateConfigFile(cfg_name, newVersion); err != nil {
|
if err := updateConfigFile(cfg_name, newVersion); err != nil {
|
||||||
log.Printf("Error updating config file: %v", err)
|
log.Printf("Error updating config file: %v", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user