@@ -284,7 +284,8 @@ func newSteps(a sdk.Action) []Step {
284
284
}
285
285
286
286
name := act .Name
287
- if act .Group != nil {
287
+ // Do not export "shared.infra" group name
288
+ if act .Group != nil && act .Group .Name != sdk .SharedInfraGroupName {
288
289
name = fmt .Sprintf ("%s/%s" , act .Group .Name , act .Name )
289
290
}
290
291
@@ -300,7 +301,7 @@ func newSteps(a sdk.Action) []Step {
300
301
//AsScript returns the step a sdk.Action
301
302
func (s Step ) AsScript () (* sdk.Action , bool , error ) {
302
303
if ! s .IsValid () {
303
- return nil , false , fmt .Errorf ("AsScript. Malformatted Step" )
304
+ return nil , false , fmt .Errorf ("script: Malformatted Step" )
304
305
}
305
306
306
307
bI , ok := s ["script" ]
@@ -324,7 +325,7 @@ func (s Step) AsScript() (*sdk.Action, bool, error) {
324
325
}
325
326
326
327
if ! ok {
327
- return nil , true , fmt .Errorf ("Malformatted Step : script must be a string or a string array" )
328
+ return nil , true , fmt .Errorf ("malformatted Step : script must be a string or a string array" )
328
329
}
329
330
330
331
a := sdk .NewStepScript (bS )
@@ -353,7 +354,7 @@ func (s Step) AsScript() (*sdk.Action, bool, error) {
353
354
//AsAction returns the step a sdk.Action
354
355
func (s Step ) AsAction () (* sdk.Action , bool , error ) {
355
356
if ! s .IsValid () {
356
- return nil , false , fmt .Errorf ("AsAction. Malformatted Step" )
357
+ return nil , false , fmt .Errorf ("action: Malformatted Step" )
357
358
}
358
359
359
360
actionName := s .key ()
@@ -399,7 +400,7 @@ func (s Step) AsAction() (*sdk.Action, bool, error) {
399
400
//AsJUnitReport returns the step a sdk.Action
400
401
func (s Step ) AsJUnitReport () (* sdk.Action , bool , error ) {
401
402
if ! s .IsValid () {
402
- return nil , false , fmt .Errorf ("AsJUnitReport. Malformatted Step" )
403
+ return nil , false , fmt .Errorf ("jUnitReport: Malformatted Step" )
403
404
}
404
405
405
406
bI , ok := s ["jUnitReport" ]
@@ -409,7 +410,7 @@ func (s Step) AsJUnitReport() (*sdk.Action, bool, error) {
409
410
410
411
bS , ok := bI .(string )
411
412
if ! ok {
412
- return nil , true , fmt .Errorf ("Malformatted Step : jUnitReport must be a string" )
413
+ return nil , true , fmt .Errorf ("malformatted Step : jUnitReport must be a string" )
413
414
}
414
415
415
416
a := sdk .NewStepJUnitReport (bS )
@@ -438,7 +439,7 @@ func (s Step) AsJUnitReport() (*sdk.Action, bool, error) {
438
439
//AsGitClone returns the step a sdk.Action
439
440
func (s Step ) AsGitClone () (* sdk.Action , bool , error ) {
440
441
if ! s .IsValid () {
441
- return nil , false , fmt .Errorf ("AsGitClone. Malformatted Step" )
442
+ return nil , false , fmt .Errorf ("gitClone: Malformatted Step" )
442
443
}
443
444
444
445
bI , ok := s ["gitClone" ]
@@ -481,7 +482,7 @@ func (s Step) AsGitClone() (*sdk.Action, bool, error) {
481
482
//AsArtifactUpload returns the step a sdk.Action
482
483
func (s Step ) AsArtifactUpload () (* sdk.Action , bool , error ) {
483
484
if ! s .IsValid () {
484
- return nil , false , fmt .Errorf ("AsArtifactUpload. Malformatted Step" )
485
+ return nil , false , fmt .Errorf ("artifactUpload Malformatted Step" )
485
486
}
486
487
487
488
bI , ok := s ["artifactUpload" ]
@@ -530,7 +531,7 @@ func (s Step) AsArtifactUpload() (*sdk.Action, bool, error) {
530
531
//AsServeStaticFiles returns the step a sdk.Action
531
532
func (s Step ) AsServeStaticFiles () (* sdk.Action , bool , error ) {
532
533
if ! s .IsValid () {
533
- return nil , false , fmt .Errorf ("AsServeStaticFiles. Malformatted Step" )
534
+ return nil , false , fmt .Errorf ("serveStaticFiles: Malformatted Step" )
534
535
}
535
536
536
537
bI , ok := s ["serveStaticFiles" ]
@@ -573,7 +574,7 @@ func (s Step) AsServeStaticFiles() (*sdk.Action, bool, error) {
573
574
//AsArtifactDownload returns the step a sdk.Action
574
575
func (s Step ) AsArtifactDownload () (* sdk.Action , bool , error ) {
575
576
if ! s .IsValid () {
576
- return nil , false , fmt .Errorf ("AsArtifactDownload. Malformatted Step" )
577
+ return nil , false , fmt .Errorf ("artifactDownload: Malformatted Step" )
577
578
}
578
579
579
580
bI , ok := s ["artifactDownload" ]
@@ -583,7 +584,7 @@ func (s Step) AsArtifactDownload() (*sdk.Action, bool, error) {
583
584
584
585
argss := map [string ]string {}
585
586
if err := mapstructure .Decode (bI , & argss ); err != nil {
586
- return nil , true , sdk .WrapError (err , "Malformatted Step" )
587
+ return nil , true , sdk .WrapError (err , "malformatted Step" )
587
588
}
588
589
a := sdk .NewStepArtifactDownload (argss )
589
590
@@ -620,7 +621,7 @@ func (s Step) AsCheckoutApplication() (*sdk.Action, bool, error) {
620
621
621
622
bS , ok := bI .(string )
622
623
if ! ok {
623
- return nil , true , fmt .Errorf ("Malformatted Step : checkout must be a string" )
624
+ return nil , true , fmt .Errorf ("malformatted Step : checkout must be a string" )
624
625
}
625
626
a := sdk .NewCheckoutApplication (bS )
626
627
@@ -648,7 +649,7 @@ func (s Step) AsCheckoutApplication() (*sdk.Action, bool, error) {
648
649
//AsCoverageAction returns the step as a sdk.Action
649
650
func (s Step ) AsCoverageAction () (* sdk.Action , bool , error ) {
650
651
if ! s .IsValid () {
651
- return nil , false , fmt .Errorf ("AsCoverageAction> Malformatted Step" )
652
+ return nil , false , fmt .Errorf ("coverageAction: Malformatted Step" )
652
653
}
653
654
bI , ok := s ["coverage" ]
654
655
if ! ok {
@@ -685,7 +686,7 @@ func (s Step) AsCoverageAction() (*sdk.Action, bool, error) {
685
686
//AsDeployApplication returns the step as a sdk.Action
686
687
func (s Step ) AsDeployApplication () (* sdk.Action , bool , error ) {
687
688
if ! s .IsValid () {
688
- return nil , false , fmt .Errorf ("AsDeployApplication> Malformatted Step" )
689
+ return nil , false , fmt .Errorf ("deployApplication: Malformatted Step" )
689
690
}
690
691
bI , ok := s ["deploy" ]
691
692
if ! ok {
@@ -694,7 +695,7 @@ func (s Step) AsDeployApplication() (*sdk.Action, bool, error) {
694
695
695
696
bS , ok := bI .(string )
696
697
if ! ok {
697
- return nil , true , fmt .Errorf ("Malformatted Step : deploy must be a string" )
698
+ return nil , true , fmt .Errorf ("malformatted Step : deploy must be a string" )
698
699
}
699
700
a := sdk .NewDeployApplication (bS )
700
701
@@ -728,7 +729,7 @@ func (s Step) IsFlagged(flag string) (bool, error) {
728
729
}
729
730
bS , ok := bI .(bool )
730
731
if ! ok {
731
- return false , fmt .Errorf ("Malformatted Step : %s attribute must be true|false" , flag )
732
+ return false , fmt .Errorf ("malformatted Step : %s attribute must be true|false" , flag )
732
733
}
733
734
return bS , nil
734
735
}
@@ -739,7 +740,7 @@ func (s Step) Name() (string, error) {
739
740
if stepName , okName := stepAttr .(string ); okName {
740
741
return stepName , nil
741
742
}
742
- return "" , fmt .Errorf ("Malformatted Step : name must be a string" )
743
+ return "" , fmt .Errorf ("malformatted Step : name must be a string" )
743
744
}
744
745
return "" , nil
745
746
}
0 commit comments