mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-27 02:40:30 +00:00
parent
de033176fd
commit
80d5d233b3
1 changed files with 8 additions and 1 deletions
|
@ -68,8 +68,15 @@ func (e *local) IsAvailable(context.Context) bool {
|
|||
|
||||
func (e *local) Load(context.Context) error {
|
||||
dir, err := os.MkdirTemp("", "woodpecker-local-*")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
e.workflowBaseDir = dir
|
||||
return err
|
||||
|
||||
if err := os.Mkdir(filepath.Join(e.workflowBaseDir, workingSubDir), 0o700); err != nil {
|
||||
return err
|
||||
}
|
||||
return os.Mkdir(filepath.Join(e.workflowBaseDir, homeSubDir), 0o700)
|
||||
}
|
||||
|
||||
// Setup the pipeline environment.
|
||||
|
|
Loading…
Reference in a new issue