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
Why Do Agents Keep Forgetting Test Results?

Why Do Agents Keep Forgetting Test Results? Agents keep forgetting test results because a test outcome normally lives and dies inside the run that produced it. The result sits in that session's context, a CI log, or a chat thread, and the next agent, the next tool, or tomorrow's session starts without it. A shared memory workspace fixes this by saving each outcome where every connected agent can read it before it starts work. Where do test results actually live today? In four places, and non

Does Telegraf Remember Between Runs? Its Statefile Saves Plugin Offsets. Not the Reasoning.

Does Telegraf Remember Between Runs? Its Statefile Saves Plugin Offsets. Not the Reasoning. Telegraf runs on a schedule, collects metrics, flushes them, and repeats. When the process stops and starts again, what survives? The short answer is: very little by default, and only specific plugin state when a statefile is configured. Understanding that boundary matters, because a pipeline that resumes a file offset correctly can still restart every decision around that data from zero. The default:

One Workspace Folder or One Shared Memory? Clief Notes' Method and Vilix AI, Honestly Compared

One Workspace Folder or One Shared Memory? Clief Notes' Method and Vilix AI, Honestly Compared Two serious answers now exist to the same question: how do you share context between ChatGPT, Claude, and the other AI tools you use, so you stop explaining the same project three times? One answer is a folder. The Clief Notes lesson "Get your AI agents on the same page," verified on its own page on December 3, 2026, teaches a four-step method that gives every AI one workspace to read. The other answe