From f5d1a204973e33f34324ea658deab7bb82f2e161 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Thu, 17 Feb 2022 17:00:09 +0000 Subject: [PATCH] ci: Use GITHUB_REF_NAME to identify branch with DataDog The "main" branch wasn't uploading properly before. --- scripts/datadog-cireport/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/datadog-cireport/main.go b/scripts/datadog-cireport/main.go index 5dbf420ec537e..302b077113bdb 100644 --- a/scripts/datadog-cireport/main.go +++ b/scripts/datadog-cireport/main.go @@ -78,7 +78,7 @@ func main() { "ci.provider.name": "github", "ci.workspace_path": os.Getenv("GITHUB_WORKSPACE"), - "git.branch": os.Getenv("GITHUB_HEAD_REF"), + "git.branch": os.Getenv("GITHUB_REF_NAME"), "git.commit.sha": githubSHA, "git.repository_url": fmt.Sprintf("%s/%s.git", githubServerURL, githubRepository),