Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Jul 10, 2024
1 parent 155ef83 commit 4706ecb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions check_recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@
errors = 0
for path in paths:
if not ingredients_re.search(path.read_text()):
print(
f'::error file={str(path)},title=Ingredients missing::File is missing an ingredients section: "# Ingredients"'
)
print(f'File {path} is missing a section: "## Ingredients"')
errors += 1
if not instructions_re.search(path.read_text()):
print(
f'::error file={str(path)},title=Instructions missing::File is missing an instructions section: "# Instructions"'
)
print(f'File {path} is missing a section: "## Instructions"')
errors += 1

if errors:
Expand Down

0 comments on commit 4706ecb

Please sign in to comment.