Free forever, no credit card.Get Started for Free →
← All posts
November 27, 2026 · 6 min read

Does GitHub Actions Remember Between Runs? A Cache Carries Your Dependencies. The Next Run Starts on a Fresh Machine.

Does GitHub Actions Remember Between Runs? A Cache Carries Your Dependencies. The Next Run Starts on a Fresh Machine. Open the Actions tab on any active repository and the history looks like memory. Every run is listed with its commit, its duration, its green check or red cross, and its logs one click away. Run the same workflow tonight and it starts in seconds, restores a cache, and picks up where the tooling left off. It feels like the workflow remembers. Underneath, almost nothing carries ov

Does GitHub Actions Remember Between Runs? A Cache Carries Your Dependencies. The Next Run Starts on a Fresh Machine.

Open the Actions tab on any active repository and the history looks like memory. Every run is listed with its commit, its duration, its green check or red cross, and its logs one click away. Run the same workflow tonight and it starts in seconds, restores a cache, and picks up where the tooling left off. It feels like the workflow remembers. Underneath, almost nothing carries over. Each job runs on a fresh machine, and the next run starts with only what was explicitly stored somewhere it can reach.

That distinction decides what an automated workflow can learn. A scheduled workflow that runs an AI step, triages failures, or updates a tracker needs the reasoning from the run before it. Knowing exactly what GitHub Actions keeps, and for how long, shows where that continuity has to come from.

The runner forgets everything, by design

On GitHub-hosted runners, every job gets a newly provisioned virtual machine. Steps inside one job share that machine: the filesystem, the working directory, and anything an earlier step installed. Values move between steps through files GitHub provides. Appending to the file named by $GITHUB_ENV sets a variable for later steps, $GITHUB_OUTPUT carries a step's outputs, and $GITHUB_PATH adds a directory to the path. All of that lives and dies with the job.

Cross a job boundary and the machine boundary comes with it. A second job in the same workflow runs on a different runner with a clean disk. Nothing installed, written, or left running by the first job is present. Cross a run boundary and the same reset applies again. A workflow that worked yesterday leaves no working state behind for the workflow that runs today.

Job outputs pass strings inside one run, and stop there

The lightest channel between jobs is the job output. A step writes a value to $GITHUB_OUTPUT, the job republishes it under its outputs block, and a downstream job with a needs edge reads it as needs..outputs.. Outputs fit identifiers: a commit SHA, an image tag, a version number, a computed matrix.

Outputs are also strictly run-scoped. They are evaluated when the producing job ends and exist to wire one run's jobs together. There is no outputs store to query tomorrow. A value the nightly run computes is gone when the run completes, unless a step writes it somewhere durable.

Artifacts outlive the run, as files for people

Artifacts are the channel designed to persist. The upload-artifact action packages files a job produced, and download-artifact retrieves them. Within a run, that is how a build job hands a binary to a test job. After the run, the artifact stays on the run summary page, where anyone with repository access can download it.

GitHub stores artifacts and build logs for 90 days by default, and the retention period can be shortened or extended within the allowed range in repository settings. That makes artifacts a genuine cross-time store, with three limits that matter for automation. First, artifacts move files, not context: an artifact can hold a summary a step wrote, but nothing decides what belongs in it or reads it back as working context. Second, retrieval across runs is not the default path; download-artifact is built for the same run, and pulling an artifact from an earlier run means going through the API deliberately. Third, the clock always runs. A summary written in January is deleted on schedule whether or not a later run still needs it.

The cache is the only automatic carry-over, and it is built to be disposable

The cache is what makes a workflow feel like it remembers. The cache action stores directories under a key, typically a hash of a lockfile, and restores them at the start of a later job or run. Dependency folders and package downloads come back without being rebuilt.

GitHub documents the cache as a store for files that can be regenerated, and its rules enforce that role. Entries are scoped to a branch: a run restores caches from its own branch and can fall back to the default branch, but a feature branch cannot read a sibling branch's cache. The default size limit is 10 GB per repository, and when a repository passes its limit the least recently used entries are evicted. Any entry that has not been accessed in more than seven days is removed. A cache miss is not an error; the job simply continues and rebuilds what it needed.

So the cache carries bytes, briefly, under conditions. It was never designed to carry decisions, and a workflow that treats a cache entry as its memory will find that memory evicted on the first busy week or deleted after the first quiet one.

Variables and history are configuration and record, not memory

Repository, organization, and environment variables, along with secrets, are supplied to every run at start. They are configuration a person maintains, not state a run writes. A job cannot update a variable so the next run sees a new value; changing one means an API call or a settings edit outside the normal flow.

The run history itself, the list of past runs with their logs and conclusions, is a record for people. It is searchable in the interface and through the API, but no step in a new run reads the previous run's log as input. The workflow that failed at 2 a.m. leaves a detailed account of itself, and the one that runs at 3 a.m. starts without any of it.

Where the reasoning has to live

Put the pieces together and the pattern is consistent. GitHub Actions offers an excellent repeat mechanism: the same steps, the same configuration, the same declared inputs, on a clean machine every time. What it does not offer is a place where one run's understanding becomes the next run's starting point. Anything that must survive, a triage decision, a list of already-contacted accounts, the reason a test was quarantined, has to be written to a system built for shared state.

That is the role Vilix AI is built for. Vilix AI is a cloud-hosted memory layer that AI tools and agents connect to over MCP, with zero infrastructure to run. A step in tonight's workflow can save what it concluded, and a step in tomorrow's workflow, or a different agent in a different tool, reads the same memory, because it is the same memory everywhere the connection reaches.

The memory holds full conversation history, not just extracted facts, so the next run inherits the reasoning and corrections, not only the final values. The free plan is free forever, and the Pro plan starts with a 7-day trial that needs no card. Everything stored can be exported or deleted at any time, so the record a workflow builds stays under its owner's control.

GitHub Actions will keep doing what it does well: starting clean, running the declared steps, and keeping the receipts for people to read. Give the runs a memory of their own to read, and the receipts stop being the only thing left.

Get Started for Free

Persistent memory across ChatGPT, Claude, and the AI tools you already use in Vilix AI.

Get Started for Free

Free forever, no credit card.

Keep reading
Does GoCD Remember Between Runs? An Artifact Carries the Binary Forward. The Next Pipeline Instance Starts With Only Its Materials.

Does GoCD Remember Between Runs? An Artifact Carries the Binary Forward. The Next Pipeline Instance Starts With Only Its Materials. GoCD remembers a great deal about delivery, and almost nothing about reasoning. Every pipeline instance is recorded, every artifact a job publishes is stored, and a downstream pipeline can fetch exactly the artifact its ancestor produced. What no instance inherits is the working context behind the last run: why a stage was retried, what an operator noticed in the l

What Are the Alternatives to Google InMemory Sessions for the Anthropic SDK?

What Are the Alternatives to Google InMemory Sessions for the Anthropic SDK? The alternatives to Google InMemory sessions for the Anthropic SDK are a database-backed session store you run yourself, a managed session service from a cloud platform, or a hosted memory layer your agent connects to over MCP. InMemory sessions keep state in process memory only, so every restart, redeploy, or scale-out wipes what your agent knew. Any of the three alternatives fixes that by writing session state and co

Does Spinnaker Remember Between Runs? An Artifact Can Carry Over From the Prior Execution. The Next Execution Starts With Only Its Trigger.

Does Spinnaker Remember Between Runs? An Artifact Can Carry Over From the Prior Execution. The Next Execution Starts With Only Its Trigger. A Spinnaker pipeline that deploys the same service every day can look like it knows the service by heart. The right image arrives, the right manifest renders, and the execution list shows every earlier deployment in order. Underneath, each execution is its own record with its own context, built from its trigger and its stages. What one execution learned sta