[shipped] course data is now automatically synced! #102
qaisjp
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR: As of e1ba9bb we now automatically sync course data from course.inf.ed.ac.uk to
master/_data/courses.yml
!The what file?
The
courses.yaml
file is a dump of Informatics' course listing. Better Informatics uses it to organise courses into semesters, suggest relevant courses (third years can take fourth year courses too, as long as they are Level 10), and probably other stuff too.Explanation
Previously, whenever I noticed the course data was a bit stale, I'd run the courses.yaml generator that lives in bi-app. Then I'd copy the YAML file it generated and paste it over the YAML file in this repo. All of this is manual work.
Now, every weekday at 7pm, that script and this GitHub workflow will automatically commit and push any
courses.yaml
updates tomaster
, completely on its own!It won't create extra commits, either. If there are no real changes, it will simply do nothing!
What if it changes mid-week and I want it to update NOW!
That's cool. You can also run it manually. Just follow these instructions:
The nitty gritty
To make this possible, there were a few changes I had to make to the YAML generator:
You can view the first ever run here: https://github.com/compsoc-edinburgh/betterinformatics/runs/1099186437?check_suite_focus=true
I'm happy to answer any and all questions!
(I'm leaving this announcement open for a little while, and I will close it later.)
Beta Was this translation helpful? Give feedback.
All reactions