Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
djeebus committed Dec 14, 2023
1 parent 7b7dc86 commit 0ba2ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/app_directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (d *AppDirectory) FindAppsBasedOnChangeList(changeList []string, targetBran
log.Warn().Msgf("failed to find matched app named '%s'", appName)
continue
}
if app.TargetRevision == "HEAD" && (targetBranch == "main" || targetBranch == "master") {
if app.TargetRevision == "HEAD" && targetBranch != "main" && targetBranch != "master" {
log.Debug().Msgf("target revision of %s is HEAD and '%s' is not main or master", appName, targetBranch)
continue
}
Expand Down

0 comments on commit 0ba2ac8

Please sign in to comment.