RaspberryPiFoundation / lesson_format

Lesson formatter
17 stars 28 forks source link

Autobuild: Run whenever a change is made to a curriculum repo #93

Closed andylolz closed 9 years ago

andylolz commented 9 years ago

@codeclubrobot is currently scheduled to run nightly, thanks to heroku scheduler. It would be better to (also) run whenever a change is made to a curriculum repo.

This involves:

andylolz commented 9 years ago

I’ve made a very tiny API for this using flask (overkill perhaps, given there’s only one endpoint… but flask was the easiest thing to use.)

andylolz commented 9 years ago

To add the webhooks:

Then do the same for https://github.com/codeclub/webdev-curriculum/settings/hooks/new and https://github.com/codeclub/python-curriculum/settings/hooks/new

andylolz commented 9 years ago

To just rebuild world, the payload URL would be: http://codeclubrobot.herokuapp.com/rebuild/world

Jonic commented 9 years ago

Done :)

andylolz commented 9 years ago

Brilliant! Thanks, @Jonic :)

From the heroku logs, it looks like it’s working :+1: