Skip to content

Commit 3823362

Browse files
authored
Reset error to prevent stopping the run
1 parent acb9ff2 commit 3823362

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ func main() {
172172
runs, res, err = client.Actions.ListRepositoryWorkflowRuns(ctx, orgName, repo.GetName(), opts)
173173
if err != nil {
174174
log.Printf("Error getting the workflow runs for: %s", repo.GetFullName())
175+
// reset error to prevent stopping the run
176+
err = nil
175177
}
176178
}
177179
if userName != "" {
@@ -183,6 +185,8 @@ func main() {
183185
runs, res, err = client.Actions.ListRepositoryWorkflowRuns(ctx, realOwner, repo.GetName(), opts)
184186
if err != nil {
185187
log.Printf("Error getting the workflow runs for: %s", repo.GetFullName())
188+
// reset error to prevent stopping the run
189+
err = nil
186190
}
187191
}
188192

0 commit comments

Comments
 (0)