Skip to content

Commit

Permalink
fix: cleanup attempt number if request is successful
Browse files Browse the repository at this point in the history
  • Loading branch information
p-mazhnik committed Sep 2, 2024
1 parent 78da6da commit 7ecbe46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/listen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export const waitForBuildEndTime = async (
response = await client.get<BuildLogResponse>(
`/apps/${appSlug}/builds/${buildSlug}/log`
)
// cleanup attempt number if request is successful
attemptNumber = 1
} catch (error) {
if (error instanceof AxiosError && error.response) {
core.info(error.response.data?.message)
Expand Down

0 comments on commit 7ecbe46

Please sign in to comment.