Skip to content

Commit

Permalink
🐛 Fix GitHub Actions flag
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Sep 20, 2022
1 parent db02ca2 commit 70f5f7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion internal/actions/dump/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
}

Expand Down Expand Up @@ -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
}

Expand Down
1 change: 0 additions & 1 deletion internal/config/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ type Dump struct {
Tables []string
ExcludeTable []string
ExcludeTableData []string
GitHubActions bool
}

0 comments on commit 70f5f7b

Please sign in to comment.