ci: Use GITHUB_REF_NAME to identify branch with DataDog (#313)

The "main" branch wasn't uploading properly before.
This commit is contained in:
Kyle Carberry
2022-02-17 11:30:44 -06:00
committed by GitHub
parent 503d09c149
commit dd36317bbd

View File

@ -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),