commit 8e128921d99c96667e053efbe271bfa03cc98011 parent 7672d79a1f00561ff6d0f87813d2e2add7b843a6 Author: Arjoonn Sharma <arjoonn@midpathsoftware.com> Date: Fri, 27 Mar 2026 16:04:38 +0530 Friday 27 March 2026 04:04:38 PM IST Diffstat:
| M | README.md | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md @@ -86,7 +86,13 @@ chmod +x .jci/run.sh 0 0 * * * branch:main name:nightly # named midnight build on main ``` -After editing `.jci/crontab`, run `git jci cron sync` to install the entries into your system's crontab. Cron jobs run with the repository root as the working directory and have access to all three `JCI_*` environment variables. +After editing `.jci/crontab`, run `git jci cron sync` to install the entries into your system's crontab. Each installed entry runs `git-jci run` from the repository root. For example, the `branch:main name:nightly` entry above becomes: + +``` +0 0 * * * cd '/path/to/repo' && git fetch --quiet 2>/dev/null; git checkout --quiet main 2>/dev/null && git pull --quiet 2>/dev/null; git-jci run # JCI:<repoID> [nightly] +``` + +Cron jobs run with the repository root as the working directory and have access to all three `JCI_*` environment variables. ## Environment Vars