Skip to content

Commit

Permalink
Updates to finding upstream workshop list via regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemoralespou committed Jun 18, 2024
1 parent 66456b9 commit c6fd7af
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c6fd7af

Please sign in to comment.