add github env

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2019-02-19 09:14:30 +08:00
parent 1af78fef8e
commit 9815f76352
2 changed files with 59 additions and 7 deletions
+10
View File
@@ -21,6 +21,15 @@ const (
)
type (
// GitHub information.
GitHub struct {
Workflow string
Workspace string
Action string
EventName string
EventPath string
}
// Repo information
Repo struct {
Owner string
@@ -96,6 +105,7 @@ type (
// Plugin values.
Plugin struct {
GitHub GitHub
Repo Repo
Build Build
Config Config