Skip to content

Commit e1444e7

Browse files
Tools: Update Writeme check (#7507)
* Update readme return logic. * Update runner.py Just touching this file for GH action testing. --------- Co-authored-by: Jason Q <81179619+beqqrry-aws@users.noreply.github.com>
1 parent 763807b commit e1444e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.tools/readmes/runner.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ def writeme(
190190
print(failed_list)
191191
print("Rerun writeme.py to update README links and sections.")
192192
print("WRITEME Run completed.")
193-
return len(failed)
193+
fail_count = len(failed)
194+
if fail_count > 0:
195+
raise typer.Exit(code=fail_count) # Return a non-zero code through typer so Github check will fail.
196+
return fail_count
194197

195198

196199
def make_diff(renderer, id):

0 commit comments

Comments
 (0)