diff --git a/cmd/get/get.go b/cmd/get/get.go index 857f192..7f7bc2f 100644 --- a/cmd/get/get.go +++ b/cmd/get/get.go @@ -39,7 +39,7 @@ var GetCmd = &cobra.Command{ allNodes, roots := execute.CreateTrees(version, false) var runs []types.Run - if util.URL != "" { + if runID == "" && util.URL != "" { workflowURLRunID, err := util.GetRunIDFromWorkflowURL(util.URL) if err == nil { runID = workflowURLRunID diff --git a/cmd/output/output.go b/cmd/output/output.go index 71a4145..3b7df2c 100644 --- a/cmd/output/output.go +++ b/cmd/output/output.go @@ -107,7 +107,7 @@ The YAML config file should be formatted like: runs := make([]types.Run, 0) - if util.URL != "" { + if runID == "" && util.URL != "" { workflowURLRunID, err := util.GetRunIDFromWorkflowURL(util.URL) if err == nil { runID = workflowURLRunID