DemocracyClub / uk-election-timetables

Encapsulates timetable legislation for elections run in the United Kingdom and its devolved administrations. 🗳🕰
MIT License
3 stars 0 forks source link

feat(bank-holidays): GitHub action to check for updates #14

Closed mrwilson closed 3 years ago

mrwilson commented 3 years ago

Sometimes this library falls behind with updating its bank-holidays.json

This scheduled job in GitHub Actions pulls the latest bank-holidays.json from GOV.UK and creates an issue if there is a non-empty diff between it and the current file embedded in the library.

Resolves #6

symroe commented 3 years ago

It's funny, I was just thinking about this earlier on today!

I think this is a great first step, but it's also worth attempting to create a PR once we have the file - e.g https://github.com/peter-evans/create-pull-request.

I've never tried this, and it would be hard to test, but it would be super useful to just merge a PR :)

mrwilson commented 3 years ago

That's a good shout - the next step should definitely be automatically raising a PR