From 01c87d2b9b18034195ed169947714842e6d7c4a8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 31 Oct 2024 18:44:38 -0400 Subject: [PATCH] Make default branch error more prominent Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- options/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options/options.go b/options/options.go index a2d363fe..feb11b25 100644 --- a/options/options.go +++ b/options/options.go @@ -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 }