diff --git a/drone/exec/env.go b/drone/exec/env.go index d37dd0e..08488ff 100644 --- a/drone/exec/env.go +++ b/drone/exec/env.go @@ -27,7 +27,7 @@ func getEnv(c *cli.Context) map[string]string { env["DRONE_SYSTEM_HOSTNAME"] = v } if c.IsSet("ref") { - v := c.String("instance") + v := c.String("ref") env["DRONE_COMMIT_REF"] = v } if c.IsSet("repo") {