Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Commit

Permalink
Only copy catalog for courses with data
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminrsherman committed Nov 1, 2020
1 parent 2e917b3 commit c9cace2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/scrape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ jobs:

- name: Commit new data
run: |
rsync -avz catalog/data courses/data
for directory in courses/data/*; do
DIR_BASENAME=$(basename directory)
cp catalog/data/$DIR_BASENAME/* $directory
done
mv courses/data/* data
cp faculty/faculty.json data
Expand Down

0 comments on commit c9cace2

Please sign in to comment.