Skip to content

Commit

Permalink
upd bad_links only if !PR
Browse files Browse the repository at this point in the history
  • Loading branch information
markcmiller86 committed Jul 1, 2024
1 parent 7b0e42e commit f840b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/LinkChecker/cklcresults.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ 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')

#
# 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')

0 comments on commit f840b17

Please sign in to comment.