From 70f5f7b5c3387db0fb566bdb9dd04c55fdc390dc Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Tue, 20 Sep 2022 15:39:22 -0500 Subject: [PATCH] :bug: Fix GitHub Actions flag --- internal/actions/dump/dump.go | 4 +++- internal/config/dump.go | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/actions/dump/dump.go b/internal/actions/dump/dump.go index f4fb2879..d4c1d978 100644 --- a/internal/actions/dump/dump.go +++ b/internal/actions/dump/dump.go @@ -9,6 +9,7 @@ import ( "github.com/clevyr/kubedb/internal/progressbar" gzip "github.com/klauspost/pgzip" log "github.com/sirupsen/logrus" + "github.com/spf13/viper" "io" "k8s.io/client-go/tools/remotecommand" "k8s.io/kubectl/pkg/util/term" @@ -60,7 +61,7 @@ func (action Dump) Run() (err error) { "file": action.Filename, }).Info("exporting database") - if action.GitHubActions { + if viper.GetBool("github-actions") { fmt.Println("::set-output name=filename::" + action.Filename) } @@ -143,6 +144,7 @@ func (action Dump) Run() (err error) { "file": action.Filename, "in": time.Since(startTime).Truncate(10 * time.Millisecond), }).Info("dump complete") + return nil } diff --git a/internal/config/dump.go b/internal/config/dump.go index 62f2fe39..c4d82efc 100644 --- a/internal/config/dump.go +++ b/internal/config/dump.go @@ -10,5 +10,4 @@ type Dump struct { Tables []string ExcludeTable []string ExcludeTableData []string - GitHubActions bool }