Skip to content

Commit

Permalink
FIX: issues 150, bad commit ref for github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhou Feiyu authored and fezho committed Jan 10, 2020
1 parent b2bbf7b commit a69f7c8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions goveralls.go
Expand Up @@ -322,9 +322,11 @@ func process() error {

commitRef := "HEAD"
if os.Getenv("GITHUB_EVENT_NAME") == "pull_request" {
ghPR := getGithubEvent()["pull_request"].(map[string]interface{})
ghHead := ghPR["head"].(map[string]interface{})
commitRef = ghHead["sha"].(string)
// ghPR := getGithubEvent()["pull_request"].(map[string]interface{})
// ghHead := ghPR["head"].(map[string]interface{})
// commitRef = ghHead["sha"].(string)
log.Printf("github event value: %+v", getGithubEvent())
commitRef = fmt.Sprintf("refs/pull/%s/merge", pullRequest)
}

j := Job{
Expand Down

0 comments on commit a69f7c8

Please sign in to comment.