Skip to content

Commit

Permalink
Add check that feedstock dir is detected
Browse files Browse the repository at this point in the history
  • Loading branch information
jbusecke committed Dec 12, 2023
1 parent 01ba2c3 commit d558f9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions action/deploy_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ def main():
if autodetect_feedstock_folder:
# find all folders that have a `meta.yaml` file in them
feedstock_subdirs = [f for f,_,files in os.walk(cwd) if 'meta.yaml' in files]
if len(feedstock_subdirs) == 0:
raise ValueError(
"No feedstock subdirectories found. Please confirm that at least one directory "
"in the repo contains a `meta.yaml` file."
)
else:
feedstock_subdirs = os.path.join(cwd, "feedstock")
print(f"{feedstock_subdirs = }")
Expand Down

0 comments on commit d558f9b

Please sign in to comment.