Skip to content

CI: path-filter so docs/asset-only changes skip the Rust build/E2E/bench #477

Description

@pallakatos

Problem: A docs/asset-only change (e.g. #476, swapping a .gif/.cast) triggers the full ~19min Rust build + E2E + bench, and main is protected so even a one-line asset swap needs a PR.

Why naive fix fails: build-rust/e2e/bench are required checks. Adding plain paths-ignore makes them not run → required check stays pending → blocks merge.

Proposed fix:

  1. changes job (dorny/paths-filter) → code vs docs outputs.
  2. Gate heavy jobs on needs.changes.outputs.code == 'true'.
  3. A final ci-complete aggregate job (if: always()) that's the single required check, passing when heavy jobs succeed or are correctly skipped for docs.
  4. Allow trivial docs/asset commits straight to main (or auto-merge label).

Docs paths: docs/**, README.md, *.md, docs/assets/**.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions