Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd36317

Browse files
authored
ci: Use GITHUB_REF_NAME to identify branch with DataDog (#313)
The "main" branch wasn't uploading properly before.
1 parent 503d09c commit dd36317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/datadog-cireport/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func main() {
7878
"ci.provider.name": "github",
7979
"ci.workspace_path": os.Getenv("GITHUB_WORKSPACE"),
8080

81-
"git.branch": os.Getenv("GITHUB_HEAD_REF"),
81+
"git.branch": os.Getenv("GITHUB_REF_NAME"),
8282
"git.commit.sha": githubSHA,
8383
"git.repository_url": fmt.Sprintf("%s/%s.git", githubServerURL, githubRepository),
8484

0 commit comments

Comments
 (0)