Fix using datetime in custom template (#83)

Revert f529160760
This commit is contained in:
kolaente 2019-10-22 17:46:44 +02:00 committed by Bo-Yi Wu
parent f8f311ba1f
commit 866e25b433
2 changed files with 6 additions and 6 deletions

View File

@ -190,12 +190,12 @@ func main() {
Usage: "pull request", Usage: "pull request",
EnvVar: "DRONE_PULL_REQUEST", EnvVar: "DRONE_PULL_REQUEST",
}, },
cli.Int64Flag{ cli.Float64Flag{
Name: "job.started", Name: "job.started",
Usage: "job started", Usage: "job started",
EnvVar: "DRONE_BUILD_STARTED", EnvVar: "DRONE_BUILD_STARTED",
}, },
cli.Int64Flag{ cli.Float64Flag{
Name: "job.finished", Name: "job.finished",
Usage: "job finished", Usage: "job finished",
EnvVar: "DRONE_BUILD_FINISHED", EnvVar: "DRONE_BUILD_FINISHED",
@ -281,8 +281,8 @@ func run(c *cli.Context) error {
Event: c.String("build.event"), Event: c.String("build.event"),
Status: c.String("build.status"), Status: c.String("build.status"),
Link: c.String("build.link"), Link: c.String("build.link"),
Started: c.Int64("job.started"), Started: c.Float64("job.started"),
Finished: c.Int64("job.finished"), Finished: c.Float64("job.finished"),
PR: c.String("pull.request"), PR: c.String("pull.request"),
DeployTo: c.String("deploy.to"), DeployTo: c.String("deploy.to"),
}, },

View File

@ -51,8 +51,8 @@ type (
Number int Number int
Status string Status string
Link string Link string
Started int64 Started float64
Finished int64 Finished float64
PR string PR string
DeployTo string DeployTo string
} }