Skip to content

Commit 88d9c33

Browse files
committed
Upload acceptance artifacts before commenting on a pull request
1 parent 88d1d5e commit 88d9c33

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

acceptance/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,17 @@ func (a *acceptance) trigger(ctx context.Context) (*notify.Notification, error)
7777
if err != nil {
7878
return nil, fmt.Errorf("report: %w", err)
7979
}
80+
err = a.Upload(ctx, artifactDir)
81+
if err != nil {
82+
return nil, fmt.Errorf("upload artifact: %w", err)
83+
}
8084
// better be redacting twice, right?
8185
summary := redact.ReplaceAll(report.StepSummary())
8286
a.Action.AddStepSummary(summary)
8387
err = a.AddOrUpdateComment(ctx, summary)
8488
if err != nil {
8589
return nil, fmt.Errorf("comment: %w", err)
8690
}
87-
err = a.Upload(ctx, artifactDir)
88-
if err != nil {
89-
return nil, fmt.Errorf("upload artifact: %w", err)
90-
}
9191
runUrl, err := a.RunURL(ctx)
9292
if err != nil {
9393
return nil, fmt.Errorf("run url: %w", err)

0 commit comments

Comments
 (0)