chore: update inputs.ts adding comment about fetch_depth (#2000)

This commit is contained in:
Tonye Jack 2024-03-20 08:29:59 -06:00 committed by GitHub
parent 427adf47f0
commit 02768050b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

1
dist/index.js generated vendored
View File

@ -1650,6 +1650,7 @@ const getInputs = () => {
useRestApi
};
if (fetchDepth) {
// Fallback to at least 2 if the fetch_depth is less than 2
inputs.fetchDepth = Math.max(parseInt(fetchDepth, 10), 2);
}
if (dirNamesMaxDepth) {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -297,6 +297,7 @@ export const getInputs = (): Inputs => {
}
if (fetchDepth) {
// Fallback to at least 2 if the fetch_depth is less than 2
inputs.fetchDepth = Math.max(parseInt(fetchDepth, 10), 2)
}