Skip to content

Commit

Permalink
fix: check if local pipeline exists (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockopp authored Oct 21, 2021
1 parent afd1883 commit 88f1f0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action/pipeline/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ func (c *Config) ValidateLocal(client compiler.Engine) error {
path = filepath.Join(c.Path, c.File)
}

// check if full path to pipeline file exists
_, err = os.Stat(path)
if err != nil {
return fmt.Errorf("unable to find pipeline %s: %v", path, err)
}

path, err = validateFile(path)
if err != nil {
return err
Expand Down

0 comments on commit 88f1f0f

Please sign in to comment.