Skip to content

Skip scheduled runs when the workflow already ran on the same commit #205

Closed

Description

@woksin

Nightly and other scheduled workflows that validate code (integration specs, nightly builds, benchmarks and similar) rerun even when nothing has changed since they last ran on the same head commit. Provide a shared way for a scheduled run to check whether the same workflow already completed successfully for the current commit and, if so, skip its jobs. Roll it out to the scheduled code-validation workflows across Cratis repositories.

Health and monitoring workflows that check live systems rather than code (for example chronicle-health and sign-in-health) are out of scope; they must keep running on schedule.

Status

State: Done
Scope: Shared scheduled-code validation guard and agreed code-only rollout. Health/monitoring schedules and schedules depending on outside inputs are excluded.
Delivered: Shared action: https://github.com/Cratis/Workflows/tree/main/.github/actions/skip-if-already-ran. Other repository rollout was reported complete in #205 (comment); the remaining Studio adoption is completed in Cratis/StudioIssues#906 and uses the guard to gate specs in https://github.com/Cratis/Studio/blob/main/.github/workflows/integration-specs.yml.
Remaining: Nothing for the agreed code-only rollout.
Follow-ups: None.

Activity

  1. self-assigned this
    on Oct 24, 2026
  2. changed the issue type fromtoon Oct 25, 2026
  3. woksin commented on Oct 29, 2026

    @woksin
    ContributorAuthor

    Direction

    Option A for Studio: adopt the scheduled-code validation guard for code-only schedules, and keep monitoring schedules excluded. Studio's adoption is tracked in Cratis/StudioIssues#906.

    Why: the shared guard exists and is already rolled out to the other repositories.

    Reversible; the owner may override.

  4. woksin commented on Nov 4, 2026

    @woksin
    ContributorAuthor

    Completed the agreed code-only scheduled-validation rollout. The shared guard is available at https://github.com/Cratis/Workflows/tree/main/.github/actions/skip-if-already-ran, and the remaining Studio adoption is completed in Cratis/StudioIssues#906. Studio uses the guard and gates its integration specs on the skip output: https://github.com/Cratis/Studio/blob/main/.github/workflows/integration-specs.yml. This completes the rollout reported in the Direction comment; health/monitoring workflows and schedules depending on outside inputs remain intentionally excluded.

  5. removed their assignment
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions