Skip to content

Commit

Permalink
Valid links would still increment error, this fixes that
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTurnerNIH committed Oct 24, 2024
1 parent 5839af8 commit 8ef3fd9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/check_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,17 @@ def check_link(link):
elif print_valid:
print(
loc + " , " + link + " , Valid")
return True
return False


if __name__ == "__main__":
err = 0
print("Directory is "+path)
# Loop through all files in path

for root, dirs, files in os.walk(path):
if "venv" in root:
continue
for file in files:
# only read file that match template ( txt, md or python notebook)
if file.endswith(".md") or file.endswith(".txt") or file.endswith(
Expand Down

0 comments on commit 8ef3fd9

Please sign in to comment.