mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-05 04:38:47 +00:00
fix: workflow output not sending output (#3091)
This commit is contained in:
committed by
GitHub
parent
781d9ac76c
commit
40f4e8ca6b
@@ -70,7 +70,8 @@ func (wh DefaultPostWorkflowHookRunner) Run(ctx models.WorkflowHookCommandContex
|
||||
}
|
||||
}
|
||||
|
||||
wh.OutputHandler.SendWorkflowHook(ctx, fmt.Sprintf("%s\n", string(out)), true)
|
||||
wh.OutputHandler.SendWorkflowHook(ctx, string(out), false)
|
||||
wh.OutputHandler.SendWorkflowHook(ctx, "\n", true)
|
||||
|
||||
ctx.Log.Info("successfully ran %q in %q", command, path)
|
||||
return string(out), strings.Trim(string(customStatusOut), "\n"), nil
|
||||
|
||||
@@ -70,7 +70,8 @@ func (wh DefaultPreWorkflowHookRunner) Run(ctx models.WorkflowHookCommandContext
|
||||
}
|
||||
}
|
||||
|
||||
wh.OutputHandler.SendWorkflowHook(ctx, fmt.Sprintf("%s\n", string(out)), true)
|
||||
wh.OutputHandler.SendWorkflowHook(ctx, string(out), false)
|
||||
wh.OutputHandler.SendWorkflowHook(ctx, "\n", true)
|
||||
|
||||
ctx.Log.Info("successfully ran %q in %q", command, path)
|
||||
return string(out), strings.Trim(string(customStatusOut), "\n"), nil
|
||||
|
||||
Reference in New Issue
Block a user