feat: ssh as shell command (#67)
* feat(ssh): add action to run shell commands over a remote server Signed-off-by: mudler <mudler@localai.io> * fix(github): correctly get content Signed-off-by: mudler <mudler@localai.io> --------- Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
committed by
GitHub
parent
d54abc3ed0
commit
1b187444fc
@@ -43,9 +43,9 @@ func (g *GithubRepositoryREADME) Run(ctx context.Context, params action.ActionPa
|
||||
return action.ActionResult{Result: resultString}, err
|
||||
}
|
||||
|
||||
var content string
|
||||
if fileContent.Content != nil {
|
||||
content = *fileContent.Content
|
||||
content, err := fileContent.GetContent()
|
||||
if err != nil {
|
||||
return action.ActionResult{}, err
|
||||
}
|
||||
|
||||
return action.ActionResult{Result: content}, err
|
||||
|
||||
Reference in New Issue
Block a user