It is time to become the other guy. This simple Next app will run a CRON job every night at 11:00pm (roughly, Vercel doesn't guarantee on time execution on lower pricing tiers), if you haven't made a commit it will create a issue for you on a repo. Since issues count as commits you will never miss another day, but they are public, so everyone will know your shame.
- Fork this repo.
- Update the
vercel.jsonCRON to be 11PM UTC in your timezone. Just change the0 13 * * *to be the time you want. It is currently set up to run at 11PM AEST. - Create a Personal Access Token with the
reposcope (classic token is fine). The expiration time is up to you. Make sure you copy with somewhere. - Go to Vercel and create a new project, connect it to your forked repo.
- Set the environment variable
GITHUB_TOKENto the token you created in step 2. - Set the environment variable
GITHUB_REPOto the repo you want to commit to. This would be the name of your fork repo. - Set the environment variable
GITHUB_OWNERto the owner of the repo you want to commit to. This is usually your username. - Deploy the project.
- Pray it still works.
