Skip to content

Commit

Permalink
fix: show task hint if unless condition is false
Browse files Browse the repository at this point in the history
  • Loading branch information
femnad committed Feb 7, 2024
1 parent 5d64e86 commit 6a059d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provision/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func runTask(task entity.Task, cfg entity.Config) error {
}

if !when.ShouldRun(task) {
if hintMsg != "" {
if hintMsg != "" && !unless.ShouldSkip(task, cfg.Settings) {
internal.Log.Warning(hintMsg)
}
internal.Log.Debugf("Skipping running task %s as when condition %s evaluated to false", name, task.When)
Expand Down

0 comments on commit 6a059d3

Please sign in to comment.