From 7094de908ba36220c46e9d56143f3eec54a694d5 Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Thu, 5 Mar 2020 16:31:58 +0100 Subject: [PATCH] run: export also ref type environment variable to runs --- internal/services/gateway/action/run.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/services/gateway/action/run.go b/internal/services/gateway/action/run.go index 8b1258e..18f2f8d 100644 --- a/internal/services/gateway/action/run.go +++ b/internal/services/gateway/action/run.go @@ -418,6 +418,7 @@ func (h *ActionHandler) CreateRuns(ctx context.Context, req *CreateRunRequest) e "AGOLA_GIT_BRANCH": req.Branch, "AGOLA_GIT_TAG": req.Tag, "AGOLA_PULL_REQUEST_ID": req.PullRequestID, + "AGOLA_GIT_REF_TYPE": string(req.RefType), "AGOLA_GIT_REF": req.Ref, "AGOLA_GIT_COMMITSHA": req.CommitSHA, }