diff --git a/hack/build/ci/update-e2e-ondemand-pipeline.py b/hack/build/ci/update-e2e-ondemand-pipeline.py index 6157a800f0..f25d6d330b 100644 --- a/hack/build/ci/update-e2e-ondemand-pipeline.py +++ b/hack/build/ci/update-e2e-ondemand-pipeline.py @@ -9,7 +9,7 @@ version = "" # read versions to list with open(version_file, "r") as f: - version = f.readline().strip().replace("origin/", "") + version = [v.strip().replace("origin/", "") for v in f.readlines()][-1] yaml = YAML() yaml.width = 4096