Skip to content

[BUG] Trigger prepare-release step fails with "not a git repository" in smoke-test dispatch #386

Closed

Description

@c-vigo

Description

The downstream smoke-test orchestration fails in the trigger-prepare-release phase because the step that runs gh workflow run prepare-release.yml is executed outside a Git worktree context.

Error from the failed job:
failed to run git: fatal: not a git repository (or any of the parent directories): .git

Steps to Reproduce

  1. Sync workspace workflow templates to downstream repo (as done in local test), including:
    • ci.yml
    • release-core.yml
    • release-publish.yml
    • sync-issues.yml
    • sync-main-to-dev.yml
  2. Run the smoke-test dispatch flow for 0.3.1-rc5.
  3. Open downstream run: https://github.com/vig-os/devcontainer-smoke-test/actions/runs/23304352254
  4. Inspect job Trigger and wait for prepare-release workflow -> step Trigger prepare-release.

Expected Behavior

trigger-prepare-release should successfully trigger prepare-release.yml, and release orchestration should continue to release PR readiness/release steps.

Actual Behavior

trigger-prepare-release fails immediately with:
fatal: not a git repository (or any of the parent directories): .git

As a result:

  • prepare: failure
  • release PR readiness: skipped
  • release workflow: skipped
  • summary: failure

Environment

Additional Context

Related issues:

Possible Solution

Ensure the trigger-prepare-release job runs in a checked-out repository context before invoking gh workflow run (or invoke gh in a way that does not require local git context, if supported by current command usage).

Changelog Category

Fixed

Activity

  1. added
    bug
    area:ci
    area:workflow
    effort:small
    semver:patch
    on Mar 19, 2026
  2. self-assigned this
    on Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:ciarea:workflowbugeffort:smallsemver:patch

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions