Skip to content

Commit

Permalink
Fix a typo in the logic checking var names
Browse files Browse the repository at this point in the history
  • Loading branch information
mikogs committed Mar 30, 2023
1 parent 3cd083b commit 4af252c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package main

const VERSION = "0.4.0"
const VERSION = "0.4.1"
2 changes: 1 addition & 1 deletion workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (w *Workflow) validateCalledVarNames(d *DotGithub) ([]string, error) {
validationErrors = append(validationErrors, w.formatError("NW107", fmt.Sprintf("Called variable name '%s' should contain uppercase alphanumeric characters and underscore only", string(f[1]))))
}

if v == "var" && d.VarsFile != "" && !d.Vars[string(f[1])] {
if v == "vars" && d.VarsFile != "" && !d.Vars[string(f[1])] {
validationErrors = append(validationErrors, w.formatError("EW254", fmt.Sprintf("Called variable '%s' does not exist in provided list of available vars", string(f[1]))))
}

Expand Down

0 comments on commit 4af252c

Please sign in to comment.