Skip to content

[ CI/CD ] Scope workflows to run only when relevant #200

@x0rw

Description

@x0rw

Currently, our GitHub Actions workflows may be running more often than necessary (e.g., on all pushes or pull requests). This can lead to wasted CI minutes, slower feedback, and unnecessary noise.

Proposed steps:

We should update the workflow triggers (on:) to be more selective, so they only run when they really matter.

  • Review each workflow file in .github/workflows/
  • Adjust triggers (e.g., push, pull_request, workflow_dispatch, schedule) to the minimal required scope
  • Consider using path filters to limit runs to changes in relevant directories/files

Exanple:

Building docs shouldn't be triggered when a PR only changes README.md

Reference: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions