Skip to content

Commit

Permalink
use the current directory for the workspace on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnstn committed Nov 8, 2023
1 parent c4126c4 commit 7fe301b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gbm-cli/cmd/workspace/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ func NewWorkspace() (Workspace, error) {
console.Info("GBM_NO_WORKSPACE is set, not creating a workspace directory")
w.disabled = true
}

if _, ci := os.LookupEnv("CI"); ci {
console.Info("CI environment detected, not creating a workspace directory")
w.disabled = true
w.dir = "."
}

if err := w.create(); err != nil {
return nil, err
}
Expand Down

0 comments on commit 7fe301b

Please sign in to comment.