Skip to content

Commit

Permalink
fix: add a fallback value for the max number for retries to fetch mis…
Browse files Browse the repository at this point in the history
…sing history (#2055)

Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
jackton1 and actions-user authored Apr 18, 2024
1 parent a06b9e8 commit 9f8300f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,10 @@ export const getInputs = (): Inputs => {
}

if (fetchMissingHistoryMaxRetries) {
inputs.fetchMissingHistoryMaxRetries = parseInt(
fetchMissingHistoryMaxRetries,
10
// Fallback to at least 1 if the fetch_missing_history_max_retries is less than 1
inputs.fetchMissingHistoryMaxRetries = Math.max(
parseInt(fetchMissingHistoryMaxRetries, 10),
1
)
}

Expand Down

0 comments on commit 9f8300f

Please sign in to comment.