Skip to content

Persist gh PATH at Machine level for cross-step visibility - #323

Merged
Finesssee merged 1 commit into
mainfrom
fix/circleci-gh-path-persist
Aug 15, 2026
Merged

Persist gh PATH at Machine level for cross-step visibility#323
Finesssee merged 1 commit into
mainfrom
fix/circleci-gh-path-persist

Conversation

@Finesssee

@Finesssee Finesssee commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • persist gh install directory to both Machine and User PATH env vars (not just User)
  • CircleCI runs each run step as a separate shell process; User-level PATH changes don't propagate to the next step
  • Machine-level PATH is picked up by all new processes on the runner

Root cause

Pipeline #38: gh install step (102) succeeded and installed gh.exe to C:\Users\circleci\AppData\Local\gh\bin\gh.exe. But the publish step (103) could not find gh because the PATH change from the install step did not persist across CircleCI run steps. Setting only User-level PATH was insufficient.

Validation

  • circleci config validate passed
  • no version files changed

View with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is enabled.

@Finesssee
Finesssee merged commit a5fd919 into main Aug 15, 2026
3 checks passed
@Finesssee
Finesssee deleted the fix/circleci-gh-path-persist branch August 15, 2026 08:11
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