Repository navigation
Description
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
- Sync workspace workflow templates to downstream repo (as done in local test), including:
ci.ymlrelease-core.ymlrelease-publish.ymlsync-issues.ymlsync-main-to-dev.yml
- Run the smoke-test dispatch flow for
0.3.1-rc5. - Open downstream run: https://github.com/vig-os/devcontainer-smoke-test/actions/runs/23304352254
- Inspect job
Trigger and wait for prepare-release workflow-> stepTrigger 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
- Source repo:
vig-os/devcontainer - Downstream repo:
vig-os/devcontainer-smoke-test - Downstream run: https://github.com/vig-os/devcontainer-smoke-test/actions/runs/23304352254
- Failed job: https://github.com/vig-os/devcontainer-smoke-test/actions/runs/23304352254/job/67826845826
- Deploy PR context: chore: deploy 0.3.1-rc5 devkit-smoke-test#40
Additional Context
Related issues:
-
Root-cause predecessor: [BUG] Sparse checkout in resolve-image job excludes the local resolve-image action #380
-
Generic dispatch failure tracker: Smoke-test dispatch failed for 0.3.1-rc5 #384
-
Similar duplicate tracker: Smoke-test dispatch failed for 0.3.1-rc5 #382
-
TDD compliance (see .cursor/rules/tdd.mdc)
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
fix(ci): set explicit gh repo context in smoke-test dispatch
fix(ci): set explicit gh repo context in smoke-test dispatch (#387)
chore: release 0.3.1 (#342)