Skip to content

lostfictions/why-cant-i

Repository files navigation

why cant i, hold all these different kinds of item

https://twitter.com/limesbot

https://mastodon.social/@limeguy

why cant I, hold all these

runs using github actions' scheduled events. thanks to simon willison for the inspiration for this setup.

i unfortunately haven't documented this approach very well yet. for now, you can check out the github workflow file. you can also look at the environment variables (required and optional) in env.ts.

as part of this approach, you'll need an "orphan" git branch (one that doesn't share any history with the main branch) in the same repo. this is where state that's persisted across bot runs is stored (the branch is appropriately named "data"). if you've forked this repo with all its branches, this should already exist.

if not -- well, it's a bit clunky to create. for now, the recommended approach is to make sure you're on a clone with the remote set correctly and that the file persist/unused_concepts.json exists locally (you may have to run yarn dev). then run npx gh-pages -d persist -b data.