3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-03-05 21:06:25 +00:00

fix: add a fallback value for the max number for retries to fetch missing history (#2055)

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Tonye Jack 2024-04-18 13:12:36 -06:00 committed by GitHub
parent a06b9e80ae
commit 9f8300f8b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

3
dist/index.js generated vendored
View file

@ -1659,7 +1659,8 @@ const getInputs = () => {
inputs.dirNamesMaxDepth = parseInt(dirNamesMaxDepth, 10);
}
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);
}
return inputs;
};

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -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
)
}