Using it
Updating a copy
Your copy of the repository is yours: new versions of linkedin-scheduler never reach it on their own. Updating means merging the new version into your copy and pushing; Workers Builds then redeploys.
Read the release notes first: they say when a
version changes wrangler.jsonc or the database.
Update
From a clone of your copy:
git remote add upstream https://github.com/cjdotdev/linkedin-scheduler.git # once
git fetch upstream
git merge --allow-unrelated-histories -X theirs upstream/main
git checkout ORIG_HEAD -- wrangler.jsonc scheduler.json # keep your configuration
git commit -m "Update linkedin-scheduler, keep my configuration"
pnpm install
git push
--allow-unrelated-historiesis needed because the Deploy button creates your copy as a fresh repository. It is harmless on later updates.-X theirstakes the new version of the files that both sides changed; thegit checkout ORIG_HEADline then puts back yourwrangler.jsonc(Worker name, database and KV ids,DRY_RUN) andscheduler.json(timezone). Your posts and media are never touched: the project only shipsposts/texts/_example.md.- If a release adds something to
wrangler.jsonc(a new binding, say), its notes say what: copy that part into yours by hand before pushing. - Database changes are migrations in
migrations/: the push applies them before deploying.
Check
After the push, the build log (dashboard → your Worker → Deployments) shows the migrations, the deploy
and the sync. GET /status must still list your posts.
Roll back
git revert the merge commit and push: the previous code is deployed again. Migrations are not undone;
releases only add columns or tables, so older code keeps working with a newer database.