feat: support branches as GITHUB_REF

This commit is contained in:
Carlos Alexandro Becker
2019-05-23 00:05:14 -03:00
parent f2cb9e391e
commit 03d57a80c9
2 changed files with 44 additions and 16 deletions

View File

@@ -199,9 +199,9 @@ func (runner *runnerImpl) applyEnvironment(env map[string]string) {
if err != nil {
log.Warningf("unable to get git ref: %v", err)
} else {
log.Infof("using github ref: %s", ref)
env["GITHUB_REF"] = ref
}
}
func (runner *runnerImpl) createGithubTarball() (io.Reader, error) {