We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b4a4cd commit 5b5f853Copy full SHA for 5b5f853
1 file changed
api/ghactions/notify.go
@@ -146,14 +146,19 @@ func processBuild(
146
opts.Page = resp.NextPage
147
}
148
149
+ var sha string
150
+ if *workflowRun.Event == "pull_request" {
151
+ sha = *workflowRun.HeadSHA
152
+ }
153
+
154
uploader, err := aeAPI.GetUploader(uploaderName)
155
if err != nil {
156
return false, fmt.Errorf("failed to get uploader creds from Datastore: %w", err)
157
158
159
uploadClient := uc.NewClient(aeAPI)
160
err = uploadClient.CreateRun(
- *workflowRun.HeadSHA,
161
+ sha,
162
uploader.Username,
163
uploader.Password,
164
nil,
0 commit comments