From c6fd7afeb668489d8408e0a1b5a88c8bc02ad0a2 Mon Sep 17 00:00:00 2001 From: Jorge Morales Pou Date: Tue, 18 Jun 2024 18:34:55 +0200 Subject: [PATCH] Updates to finding upstream workshop list via regexp --- .../src/bundle/config/ytt/overlays/overlay-workshops.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/overlays/portal-app/src/bundle/config/ytt/overlays/overlay-workshops.yaml b/overlays/portal-app/src/bundle/config/ytt/overlays/overlay-workshops.yaml index fbee4bc..8f306ca 100644 --- a/overlays/portal-app/src/bundle/config/ytt/overlays/overlay-workshops.yaml +++ b/overlays/portal-app/src/bundle/config/ytt/overlays/overlay-workshops.yaml @@ -3,11 +3,13 @@ #@ load("@ytt:yaml", "yaml") #@ load("@ytt:struct", "struct") #@ load("@ytt:assert", "assert") +#@ load("@ytt:regexp", "regexp") + #@ def upstream_workshop_list(): #@ names = [] #@ for file in data.list("/"): -#@ if file.endswith ("/workshops.yaml"): +#@ if regexp.match("workshop[^/]*\.yaml", file): #@ file_defs = data.read(file) #@ for doc in file_defs.split("\n---"): #@ parsed_doc = doc.lstrip()