From 9ec4198155ab390a698db37915b8f78751ea6e11 Mon Sep 17 00:00:00 2001 From: powe97 <116031952+powe97@users.noreply.github.com> Date: Sat, 29 Jul 2023 17:17:48 -0400 Subject: [PATCH] add header to csv --- .github/workflows/scraper.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scraper.yml b/.github/workflows/scraper.yml index 50f29b1..ae46394 100644 --- a/.github/workflows/scraper.yml +++ b/.github/workflows/scraper.yml @@ -144,12 +144,13 @@ jobs: - name: Create CSV file run: | + echo '"Instructor","Course"' > quatalog-data/courses.csv cd static-generated/courses grep -oe '
  • .*
  • ' *.html | sort -u | grep -ve "-[0-9]9[4-7][0-9]" -e "-[0-9]9[89]0" -e "-[0-9]00[1-9]" -e "USA[RF]" -e "ADMN" -e "USNA" | sed -e 's/^/"/' -e 's/.html:
  • /","/' -e 's#
  • #"#' -e 's/"\([^"]*\)","\([^"]*\)"/"\2","\1"/' | - sort > ../../quatalog-data/courses.csv + sort >> ../../quatalog-data/courses.csv - name: Push CSV file working-directory: quatalog-data