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:
Ettore Di Giacinto
2025-03-20 18:55:19 +01:00
committed by GitHub
parent d54abc3ed0
commit 1b187444fc
4 changed files with 113 additions and 6 deletions

View File

@@ -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