Skip to content

fix(resolve-env): inline the env mapping so the reusable workflow works cross-repo - #118

Merged
taraxvoid merged 1 commit into
mainfrom
worktree-resolve-env-fix
Oct 2, 2026
Merged

taraxvoid merged 1 commit into
mainfrom
worktree-resolve-env-fix

Conversation

@taraxvoid

Copy link
Copy Markdown
Owner

resolve-env.yml does actions/checkout (which checks out the caller's repo) and then uses: ./actions/branch-env-map, a path that only exists in voidflow's own repo. Every cross-repo caller therefore fails at that step with the action not found. Found rolling resolve-env into taraxvoid.net (resolve-env / Resolve env: Run ./actions/branch-env-map failed on the PR run).

Fix: inline the mapping in the workflow (no checkout, no local action). A reusable workflow has no way to reference its own repo's composite action at a matching ref, so the script is duplicated; test/branch-env-map.test.ts asserts the two scripts are byte-identical and runs the mapping for every ref/event case in both modes (default main/next/live to dev/staging/prod, and single-environment), against both copies. Also asserts the workflow has no uses steps, so this cannot regress.

Validating on a real runner via taraxvoid.net#20 pointed at this branch; result to follow here.

🤖 Generated with Claude Code

…ks cross-repo

resolve-env.yml checked out the caller's repo and then ran
./actions/branch-env-map, a path that only exists in voidflow's own repo,
so every caller failed at that step (found rolling it into
taraxvoid.net). Inline the identical mapping instead; a test keeps it
byte-identical to the composite action and covers the ref/event cases in
both modes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@taraxvoid

Copy link
Copy Markdown
Owner Author

Validated on a real runner via taraxvoid.net#20 pointed at this branch: resolve-env / Resolve env succeeds (it failed at Run ./actions/branch-env-map before), the full validate run passes, and the push-only Deploy job is correctly skipped on the PR (run 37053379527).

@taraxvoid
taraxvoid merged commit cc14d77 into main Oct 2, 2026
2 checks passed
@taraxvoid
taraxvoid deleted the worktree-resolve-env-fix branch October 2, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant