Skip to content

Commit

Permalink
Give the explicit --run parameter a higher priority than the implicit…
Browse files Browse the repository at this point in the history
… URL parameter
  • Loading branch information
mhmdiaa committed Nov 9, 2023
1 parent e6a84cf commit 360bcfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/get/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/output/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 360bcfe

Please sign in to comment.