Skip to content

Commit

Permalink
Make default branch error more prominent
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
  • Loading branch information
jsoref authored Oct 31, 2024
1 parent 72803a1 commit 01c87d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (o *Options) Validate() error {
if !o.isPullRequestEvent() &&
!o.isDefaultBranch() {
fmt.Printf("%s not supported with %s event.\n", o.GithubRef, o.GithubEventName)
fmt.Printf("Only the default branch %s is supported.\n", o.DefaultBranch)
fmt.Printf("::error ::Only the default branch %s is supported.\n", o.DefaultBranch)

return errOnlyDefaultBranchSupported
}
Expand Down

0 comments on commit 01c87d2

Please # to comment.