Skip to content

Referencing the action starts an elastic container build step even if the action itself is skipped #35

Description

@porgabi

The Elasticsearch action is conditionally called in a workflow, but even when it's not run, the container build step still runs. Here's an example for such a build:
image

The Elasticsearch action is referenced in the action.yml file found in this pull request, which is conditionally called in the build-and-test-orchard-core.yml file.

Is this normal behavior, or can it be prevented somehow? The container build step shouldn't run when the Elasticsearch setup step doesn't.

Activity

  1. Piedone commented on Nov 17, 2025

    @Piedone

    Anybody with tips on how to prevent this Docker build step that happens after the job setup if we don't actually use the action?

  2. pquentin commented on Feb 13, 2026

    @pquentin
    Member

    Did it actually run? The / symbol suggests that this step was skipped.

  3. Piedone commented on Feb 13, 2026

    @Piedone

    No, that's the point. The build step runs even if the action doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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