From f64caacfd1306760911173a6ab767b38109fa90a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20SZKIBA?= Date: Mon, 7 Oct 2024 11:36:40 +0200 Subject: [PATCH] fix: parameter handling in GitHub action mode --- cmd/action.go | 2 +- cmd/k6dist/main.go | 2 -- releases/v0.1.5.md | 3 +++ 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 releases/v0.1.5.md diff --git a/cmd/action.go b/cmd/action.go index 67b1d19..37222fc 100644 --- a/cmd/action.go +++ b/cmd/action.go @@ -19,7 +19,7 @@ func AddGitHubArgs(args []string, flags *pflag.FlagSet) ([]string, error) { args = make([]string, 0) - flags.Visit(func(flag *pflag.Flag) { + flags.VisitAll(func(flag *pflag.Flag) { args = ghinput(args, flag) }) diff --git a/cmd/k6dist/main.go b/cmd/k6dist/main.go index d972022..7d2f0c6 100644 --- a/cmd/k6dist/main.go +++ b/cmd/k6dist/main.go @@ -45,8 +45,6 @@ func newCmd(args []string, levelVar *slog.LevelVar) (*cobra.Command, error) { return nil, err } - slog.Debug("arguments", "args", args) - root.SetArgs(args) return root, nil diff --git a/releases/v0.1.5.md b/releases/v0.1.5.md new file mode 100644 index 0000000..a627917 --- /dev/null +++ b/releases/v0.1.5.md @@ -0,0 +1,3 @@ +🎉 k6dist `v0.1.5` is here! + +Fix input parameter handling in GitHub Action mode. \ No newline at end of file