mirror of
https://github.com/tj-actions/changed-files
synced 2025-03-06 05:17:44 +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:
parent
a06b9e80ae
commit
9f8300f8b4
3 changed files with 7 additions and 5 deletions
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
@ -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
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue