diff --git a/scripts/datadog-cireport/main.go b/scripts/datadog-cireport/main.go index 302b077113bdb..2c0b3a3e67844 100644 --- a/scripts/datadog-cireport/main.go +++ b/scripts/datadog-cireport/main.go @@ -59,6 +59,11 @@ func main() { } commitParts := strings.Split(string(commitData), ",") + branch := os.Getenv("GITHUB_HEAD_REF") + if branch == "" { + branch = os.Getenv("GITHUB_BASE_REF") + } + tags := map[string]string{ "service": "coder", "_dd.cireport_version": "2", @@ -78,7 +83,7 @@ func main() { "ci.provider.name": "github", "ci.workspace_path": os.Getenv("GITHUB_WORKSPACE"), - "git.branch": os.Getenv("GITHUB_REF_NAME"), + "git.branch": branch, "git.commit.sha": githubSHA, "git.repository_url": fmt.Sprintf("%s/%s.git", githubServerURL, githubRepository), pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy