thegreenwebfoundation / co2.js

An npm module for accessing the green web API, and estimating the carbon emissions from using digital services
Other
385 stars 48 forks source link

Automate fetching of new average annual grid intensity data #143

Closed fershad closed 1 year ago

fershad commented 1 year ago

Currently, it is a manual process to update average grid intensity data from Ember. Now that #125 has been deployed, and we're using the Ember API to fetch data we can look to automate this process.

tackaberry commented 1 year ago

hey @fershad and @mrchrisadams. I have one more for you. I have an idea for this one too.

I wrote a github action that will run on a schedule and manual to automatically create a PR for updated data. Then you manually mege the PR.

Check this out: https://github.com/tackaberry/co2.js/pull/2

If this is the kind of automation you're looking for, I can make a PR for the workflow. Here's a quick link to the workflow and branch.

mrchrisadams commented 1 year ago

Thanks for this @tackaberry - I've assigned it to Fershad as he's a bit more familiar with that part of the codebase than I am.

fershad commented 1 year ago

Thanks @tackaberry I'll check this out later in the week.

fershad commented 1 year ago

@tackaberry this look good to me. Can you create a PR for this please.

I've got some comments around timing & wording, but I can make those changes in the PR itself :)