mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-12 00:55:34 +00:00
feature: Execute actions on startup. Externalize the executor and add… (#101)
* feature: Execute actions on startup. Externalize the executor and add tags to logs. * fmt: Codestyle fixes
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
type ExecutionRequest struct {
|
||||
ActionName string
|
||||
Arguments map[string]string
|
||||
Tags []string
|
||||
action *config.Action
|
||||
Cfg *config.Config
|
||||
AuthenticatedUser *acl.AuthenticatedUser
|
||||
@@ -33,6 +34,7 @@ type InternalLogEntry struct {
|
||||
Stderr string
|
||||
TimedOut bool
|
||||
ExitCode int32
|
||||
Tags []string
|
||||
|
||||
/*
|
||||
The following two properties are obviously on Action normally, but it's useful
|
||||
@@ -185,5 +187,7 @@ func stepExec(req *ExecutionRequest) bool {
|
||||
req.logEntry.TimedOut = true
|
||||
}
|
||||
|
||||
req.logEntry.Tags = req.Tags
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user