Skip to content

Commit

Permalink
move calling of skipSteps
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMerrick committed Jan 7, 2025
1 parent 8b19480 commit d0deedd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions action/pipeline/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,15 @@ func (c *Config) Exec(client compiler.Engine) error {
// create a slice for steps to be removed
stepsToRemove := c.SkipSteps

// print steps to be removed to the user
// print and remove steps
if len(stepsToRemove) > 0 {
for _, stepName := range stepsToRemove {
fmt.Println("skip step: ", stepName)
}
}

// call the skipSteps function
if err := skipSteps(_pipeline, stepsToRemove); err != nil {
return err
if err := skipSteps(_pipeline, stepsToRemove); err != nil {
return err
}
}

// create current directory path for local mount
Expand Down

0 comments on commit d0deedd

Please sign in to comment.