drone 7 years ago
parent
commit
9fbc60449a
1 changed files with 10 additions and 3 deletions
  1. 10 3
      tools/src/Command/TagVendorsCommand.php

+ 10 - 3
tools/src/Command/TagVendorsCommand.php

@@ -80,6 +80,8 @@ class TagVendorsCommand extends Command
                         // si no existe el branch y estoy creando un branch nuevo
                         $git->branch->create($version);
                         $cmd .= "$version ";
+                        if ($sec == 'webservice')
+
 var_dump('creando branch----------------------');
 
                     }
@@ -87,13 +89,18 @@ var_dump('creando branch----------------------');
                     if (!$optionBranch) {
                         // estoy creando un tag
                         $tags = $git->tag();
-                        var_dump('------------------------------------------');
-                        var_dump($tag, $tags, $version, $branchRemote);
+                        if ($sec == 'webservice') {
+                            var_dump('------------------------------------------');
+                            var_dump($tag, $tags, $version, $branchRemote);
+                        }
+
                         if (!in_array($tag, $tags)) {
                             // el tag no existe
-
+                            if ($sec == 'webservice')
                             var_dump('No existe el tag');
                             if ($branchRemote == null) {
+                                if ($sec == 'webservice') 
+
                                 var_dump('$branchRemote-**************************');
                                 // el branch remote no existe
                                 $git->tag->create($tag, $version);