Skip to content

Commit

Permalink
Merge pull request #8 from pangeo-forge/skip-deploy-if-no-labels
Browse files Browse the repository at this point in the history
Prevent deployment when `select_recipe_by_label` is true but no labels are set
  • Loading branch information
cisaacstern authored Jul 28, 2023
2 parents dd3d045 + e3c76f2 commit 3fdd9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action/deploy_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def deploy_recipe_cmd(cmd: list[str]):
]
print("\nSubmitting job...")
print(f"{recipe_ids = }")
if recipe_ids:
if select_recipe_by_label:
for rid in recipe_ids:
if len(rid) > 44:
print(f"Recipe id {rid} is > 44 chars, truncating to 44 chars.")
Expand Down

0 comments on commit 3fdd9aa

Please sign in to comment.