fix: re-add ability to change the max fetch depth

This commit is contained in:
Tonye Jack
2022-11-08 12:45:25 -07:00
parent 6a9cc33099
commit 67230d6de5
2 changed files with 6 additions and 1 deletions

View File

@@ -159,7 +159,7 @@ else
# shellcheck disable=SC2086
git fetch $EXTRA_ARGS --deepen="$depth" origin "$TARGET_BRANCH" HEAD;
depth=$((depth * 10))
max_depth=5000
max_depth=$INPUT_MAX_FETCH_DEPTH
if [[ $depth -gt $max_depth ]]; then
echo "::error::Unable to find merge-base between $TARGET_BRANCH and HEAD."