You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 to master, 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:
Click the Actions tab
Select the Update courses.yaml data workflow
Click Run workflow
Leave Branch as master, and click Run workflow
The nitty gritty
To make this possible, there were a few changes I had to make to the YAML generator:
This discussion was converted from issue #102 on December 08, 2020 19:51.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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