Skip to content

Commit

Permalink
fix: use corrent workdir when has custom config
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlJi committed Jan 23, 2024
1 parent a5003f5 commit 5ae6c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (s *Server) handle(log *xlog.Logger, ctx context.Context, event *github.Pul

if lingerConfig.WorkDir != "" {
// 更新完整的工作目录
lingerConfig.WorkDir = filepath.Join(lingerConfig.WorkDir, lingerConfig.WorkDir)
lingerConfig.WorkDir = filepath.Join(r.Directory(), lingerConfig.WorkDir)
} else {
lingerConfig.WorkDir = r.Directory()
}
Expand Down

0 comments on commit 5ae6c7c

Please sign in to comment.