Fixed e2e workflow issue (#29)

* Fixed e2e workflow issue

* Updating cli version

* minor
This commit is contained in:
Deepak Dahiya
2022-08-16 17:35:44 +08:00
committed by GitHub
parent b8890ddb4c
commit ccd695dfaa
2 changed files with 2 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra"
)
const VERSION = "1.0.0"
const VERSION = "1.0.1"
var rootCmd = &cobra.Command{
Use: "gh-actions-cache",

View File

@@ -3,7 +3,6 @@ package internal
import (
"errors"
"fmt"
"os"
"unicode/utf8"
"github.com/TwiN/go-color"
@@ -46,7 +45,7 @@ func FormatCacheSize(size_in_bytes float64) string {
func PrettyPrintCacheList(caches []types.ActionsCache) {
terminal := ghTerm.FromEnv()
w, _, _ := terminal.Size()
tp := ghTableprinter.New(os.Stdout, true, w)
tp := ghTableprinter.New(terminal.Out(), terminal.IsTerminalOutput(), w)
for _, cache := range caches {
tp.AddField(cache.Key)