# Skip CI jobs whose inputs haven't changed

> GitHub Actions ran every job on every push and used up the month's minutes in two days. Talira returned only Nx, which needs a JavaScript workspace, so we skip unchanged jobs with a small script on actions/cache.

Source: https://talira.ai/dev-log/skip-unchanged-ci-jobs
All of Talira's documentation: https://talira.ai/llms.txt

20 November 2026

**Problem:** GitHub Actions ran every job on every push, even when a commit only changed docs or data the job doesn't read, and used up the month's included minutes in two days. Skip each job when its input files are the same as in a run that passed, still reporting success for required checks, in a Rust and Python repo with no package.json.

**Outcome:** Kept it: [actions/cache](https://talira.ai/catalog/actions-cache-znrtg810)

## What we searched for

"GitHub Actions CI runs every job on every push to main, even when a commit only changes docs or data the job doesn't read. I want each job skipped when its input files haven't changed since a run that passed, while still reporting success for required checks. Rust and Python monorepo, no package.json." (also "skip CI jobs whose inputs haven't changed since the last successful run", "build cache or task runner with remote cache that skips unchanged tasks in CI", "GitHub Actions burning through included minutes on docs-only commits")

1. ~ [Nx](https://talira.ai/catalog/nx-bt18n1yk): Related, not an answer: skips tasks whose inputs are cached, but is a JavaScript workspace tool (package.json, Node), which this repo doesn't have

In the latest eval run (24 Nov 2026), this search shows 3 results: 1 fits and 2 are related but not answers.

1. ✓ [fkirc/skip-duplicate-actions](https://talira.ai/catalog/fkirc-skip-duplicate-actions-8atjz9n3): Fits the search
2. ~ [Nx](https://talira.ai/catalog/nx-bt18n1yk): Related, not an answer: skips tasks whose inputs are cached, but is a JavaScript workspace tool (package.json, Node), which this repo doesn't have
3. ~ [dorny/paths-filter](https://talira.ai/catalog/dorny-paths-filter-6e7hgcdd): Related, not an answer: runs a job only when matching files changed against a base (the PR's base or the previous commit), not since the last run that passed

"Skip a GitHub Actions job when the files it depends on are the same as in an earlier run that passed, so docs-only pushes don't spend runner minutes, without adding a new build system to the repo" (also "GitHub Action that skips duplicate workflow runs for the same file contents", "paths filter for GitHub Actions jobs", "remote cache for CI task results keyed by input hash")

Talira returned nothing.

[Run this search today](https://talira.ai/?q=Skip%20a%20GitHub%20Actions%20job%20when%20the%20files%20it%20depends%20on%20are%20the%20same%20as%20in%20an%20earlier%20run%20that%20passed%2C%20so%20docs-only%20pushes%20don%27t%20spend%20runner%20minutes%2C%20without%20adding%20a%20new%20build%20system%20to%20the%20repo)

## Why

A small script hashes each job's input files from git (the workflow file and the script itself always among them), and
a first job looks the hashes up in the GitHub Actions cache with
[actions/cache](https://github.com/actions/cache)'s restore (`lookup-only`) and save. A job that passed saves a marker
under its hash; the next run with the same hash skips that job, and a skipped job still counts as passed. The release
binary is cached the same way, so a data-only commit builds a new image without compiling the server again. Caches
made on `main` serve every branch, and a branch's own caches never reach `main`.

We looked at Turborepo with Vercel's free remote cache first. It caches task results by input hash, which is what we
wanted, but it's built for JavaScript workspaces: it would need a package.json, Node on every runner and a Vercel token,
and each job would still start its runner and service containers before Turborepo could tell it to stop. Nx has the
same fit. [fkirc/skip-duplicate-actions](https://github.com/fkirc/skip-duplicate-actions) judges a whole run rather than
each job, and [dorny/paths-filter](https://github.com/dorny/paths-filter) compares with a base commit, not with the last
run that passed.

The first search returned only Nx, and the second, which ruled out build systems, returned nothing (low confidence):
Talira didn't list any GitHub Actions for this. We added all three, and a golden eval case expects them for this
question.

## How we grade the results

Each search shows what Talira returned at the time, wrong results included, and we grade every result: ✓ Fits the search, ~ Related, not an answer, ✗ Shouldn't have been shown.

Every search here is also a case in our search evals. The clearly wrong results get a rule that they must never be shown for that search, and we tune search against those cases. Under each search is how it does in the latest eval run, so you can watch the same searches improve.
