Skip to content

Commit

Permalink
Update link-checker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zachlasiuk authored Mar 28, 2024
1 parent 5cb9e3f commit 5202ec1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,24 @@ jobs:
- name: Parse through allow-listed URLs
run: |
ls
python --version
python ./build_steps/linkchecker_filter_out_allowed_urls.py
cat linkchecker_raw_output.csv
cat linkchecker_filtered_output.csv
- name: Read and validate filtered CSV
run: |
# Read the filtered CSV file
csv_content=$(<linkchecker_filtered_output.csv)
# Print the contents of the CSV
echo "Filtered CSV content:"
echo "$csv_content"
# Check if CSV content is empty
if [ -z "$csv_content" ]; then
echo "No URLs found in the filtered CSV."
else
echo "Error: URLs found in the filtered CSV."
exit 1
fi

0 comments on commit 5202ec1

Please sign in to comment.