You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] sync-main-to-dev fails: sync job checks out dev, then runs a local action that only exists on main #36
The sync job in .github/workflows/sync-main-to-dev.yml checks out dev, then
invokes a local composite action that currently only exists on main:
- name: Checkout devuses: actions/checkout@… # v7.0.0with:
ref: dev # ← workspace is now dev's treefetch-depth: 0
- name: Set up devkit toolchainuses: ./.github/actions/setup-devkit-toolchain # ← resolved from dev's tree
GitHub resolves uses: ./… against the checked-out workspace, not the
workflow's ref. .github/actions/ landed on main with the devkit 1.1.0 adoption
(#32) and is absent on dev, so the job dies immediately.
This is a bootstrap deadlock: the only thing that would carry the action onto dev is the very sync PR this workflow can no longer open. dev is stuck 4
commits behind main.
The sync job completes and opens the chore/sync-main-to-dev-* PR.
Actual Behavior
Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under
'/home/runner/work/commit-action/commit-action/.github/actions/setup-devkit-toolchain'.
Did you forget to run actions/checkout before running your local action?
Possible Solution
Drop ref: dev from the sync job's checkout so the workspace is the triggering main SHA, where the local action is guaranteed to exist. Nothing downstream reads
dev's working tree — every step operates on remote refs (git fetch, git rev-list origin/main ^origin/dev, git merge-tree origin/dev origin/main, git checkout -b … origin/main) or the GitHub API via gh. So the change is
behavior-preserving, and it makes the job build against the newer tree — the one
whose actions it references.
Upstream
This file is the devkit scaffold template verbatim, so the defect ships to every
scaffolded repo. Filed upstream as vig-os/devkit#1034.
This issue tracks the local fix so development can continue here without waiting
on a devkit release. Expect the eventual scaffold update to converge on the same
change; if it differs, re-sync to upstream then.
#38 has since merged. dev is now 0 commits behind main and carries .github/actions/, so the bootstrap deadlock is broken and the workflow can self-heal from here.
Activity
ci(sync): check out the triggering ref, not dev, in the sync job (#37)
c-vigo commentedon Jul 14, 2026
Fixed by #37 (merged as `f5f25c8`).
Verified end-to-end on the first run of the fixed workflow — run 29317285774, triggered by the merge itself:
Set up devkit toolchain(the step that used to fail) ✓Detect merge conflicts→ clean ✓Create sync branch from main→chore/sync-main-to-dev-2-1✓Create PR→ chore: sync dev with main #38, auto-merge enabled ✓#38 has since merged.
devis now 0 commits behindmainand carries.github/actions/, so the bootstrap deadlock is broken and the workflow can self-heal from here.Upstream scaffold fix still tracked at vig-os/devkit#1034.