From fb482e28f61f7dfc5dd2531be882b053919713ff Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 27 Aug 2022 12:58:48 +0530 Subject: [PATCH] ... --- .github/workflows/ci.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.py b/.github/workflows/ci.py index b54f99ee1..76ab98365 100644 --- a/.github/workflows/ci.py +++ b/.github/workflows/ci.py @@ -133,10 +133,9 @@ def main(): elif action == 'gofmt': q = subprocess.check_output('gofmt -s -l tools'.split()) if q.strip(): - q = '\n'.join(filter(lambda x: not x.endswith('_generated.go'), q.decode().strip().splitlines())).strip() + q = '\n'.join(filter(lambda x: not x.rstrip().endswith('_generated.go'), q.decode().strip().splitlines())).strip() if q: - print(q) - raise SystemExit(1) + raise SystemExit(q) else: raise SystemExit(f'Unknown action: {action}')