Skip to content

Commit

Permalink
Update validate-recipes.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bberkeyU authored Mar 7, 2024
1 parent c074d26 commit 6aef149
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/validate-recipes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
else:
results2.append(results[i])
return results2
def read_script(scriptname,parent,tab,state,darks,flat,summary,md,warning,childextension=".rcp",runTime):
def read_script(scriptname,parent,tab,state,darks,flat,summary,md,warning,runTime,childextension=".rcp"):
#print(f"{scriptname},{parent},{tab},{state},{darks},{flat},{summary},{md},{warning}")
script = open(scriptname,"r")
results = script.readlines()
Expand All @@ -54,7 +54,7 @@ jobs:
if len(child.strip()) > 0 and child.strip()[0] != "#" and not child.startswith("date") and not child.startswith("author") and not child.startswith("description"):
if childextension in child.split('#')[0]:
try:
read_script(filename,parent+","+child.split('#')[0],tab,state,darks,flats,summary,md,warning)
read_script(filename,parent+","+child.split('#')[0],tab,state,darks,flats,summary,md,warning,runTime)
except FileNotFoundError:
warning.write(f"{parent} tried to call *{filename}* which does not exist\n")
else:
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
qmenu = quick_menu.readlines()
quick_menu.close()
if "NOWARNING" not in "".join(qmenu):
read_script(menu,menu,0,state,darks,flats,summary,md,warning,".cbk",0)
read_script(menu,menu,0,state,darks,flats,summary,md,warning,0,".cbk")
md.close()
summary.close()
warning.close()
Expand Down

0 comments on commit 6aef149

Please sign in to comment.