From 285d154360ae695a7e55f9f8965e9f485ea8ec98 Mon Sep 17 00:00:00 2001 From: Thiago Monteiro Date: Tue, 18 Jun 2024 15:07:53 +0000 Subject: [PATCH] add property, github path --- operator.json | 6 ++++++ runner.py | 10 ++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/operator.json b/operator.json index 26032e7..74a3caa 100644 --- a/operator.json +++ b/operator.json @@ -6,6 +6,12 @@ "urls": ["https://github.com/tercen/workflow_runner_operator"], "container":"tercen/workflow_runner_operator:latest", "properties": [ + { + "kind": "BooleanProperty", + "name": "Report Mode", + "defaultValue": false, + "description": "" + }, { "kind": "DoubleProperty", "name": "Memory", diff --git a/runner.py b/runner.py index 6e38dea..fd10e39 100644 --- a/runner.py +++ b/runner.py @@ -322,14 +322,12 @@ def run(argv): outDf2 = pl.DataFrame() for i in range(0, nRepos): - - templateRepo = "https://github.com/" + df[i,0] - params["templateRepo"] = templateRepo - params["branch"] = df[i,1] - params["tag"] = df[i,2] + params["templateRepo"] = df[i,"repository"] + params["branch"] = df[i,"branch"] + params["tag"] = df[i,"tag"] params["gitToken"] = gitToken #FIXME Read this from parameters - params["report"] = True + params["report"] = False params["tolerance"] = tolerance params["toleranceType"] = toleranceType.lower() # opMem = 500000000