From 5c3b1abe4f07b8c5a4c7d36016d6a414dc5e0887 Mon Sep 17 00:00:00 2001 From: huyu335 <51341407+huyu335@users.noreply.github.com> Date: Wed, 28 Aug 2024 13:16:53 -0400 Subject: [PATCH] Fix auto linting issue --- .github/workflows/update_summary.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_summary.py b/.github/workflows/update_summary.py index 14a3f3ec..8453759f 100644 --- a/.github/workflows/update_summary.py +++ b/.github/workflows/update_summary.py @@ -4,10 +4,10 @@ def update_summary(origin: str, new_feature: str, feature_type: str): out_summary = "" with open(origin, 'r') as f: for line in f.readlines(): - if feature_type == "module" and line.startswith("## Subworkflows"): - out_summary += new_feature + '\n\n' - if line.strip(): - out_summary += line + if feature_type == "module" and line.startswith("## Subworkflows"): + out_summary += new_feature + '\n\n' + if line.strip(): + out_summary += line if feature_type == "subworkflow": out_summary += new_feature return out_summary