From f840b174902a270ac8e45debec5bd7b83349af34 Mon Sep 17 00:00:00 2001 From: "Mark C. Miller" Date: Sun, 30 Jun 2024 20:54:09 -0700 Subject: [PATCH] upd bad_links only if !PR --- utils/LinkChecker/cklcresults.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/LinkChecker/cklcresults.py b/utils/LinkChecker/cklcresults.py index fea8974cb..7b476f95e 100644 --- a/utils/LinkChecker/cklcresults.py +++ b/utils/LinkChecker/cklcresults.py @@ -131,7 +131,7 @@ def AppendLineToPreviousKey(cr, key, line): # # Update trouble_links file if modified # -if ghEvent != "pull_request" and len(trouble_links) != trouble_links_original_size: +if ghEvent != 'pull_request' and len(trouble_links) != trouble_links_original_size: with open('utils/LinkChecker/trouble_links.txt','w') as file: for rec in trouble_links: file.write(str(rec)+'\n') @@ -139,7 +139,7 @@ def AppendLineToPreviousKey(cr, key, line): # # Update bad_links file if modified # -if len(bad_links) > bad_links_original_size: +if ghEvent != 'pull_request' and len(bad_links) > bad_links_original_size: with open('utils/LinkChecker/bad_links.txt','w') as file: for rec in bad_links: file.write(str(rec)+'\n')