Skip to content

Commit

Permalink
chore: add SPEAKEASY_RUN_LOCATION env var to cli runs
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanSpeakEasy committed Nov 15, 2023
1 parent f1b31d6 commit 664ea02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/cli/speakeasy.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ func runSpeakeasyCommand(args ...string) (string, error) {

cmd := exec.Command(cmdPath, args...)
cmd.Dir = filepath.Join(environment.GetWorkspace(), "repo", environment.GetWorkingDirectory())
cmd.Env = []string{
"SPEAKEASY_RUN_LOCATION=action",
}
output, err := cmd.CombinedOutput()
if err != nil {
return string(output), fmt.Errorf("error running speakeasy command: speakeasy %s - %w\n %s", strings.Join(args, " "), err, string(output))
Expand Down

0 comments on commit 664ea02

Please sign in to comment.