mirror of
https://github.com/tj-actions/changed-files
synced 2024-12-17 03:47:20 +00:00
fix: error retrieving base sha. (#579)
This commit is contained in:
parent
8cd034b5cd
commit
58ae566dc6
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ else
|
|||
echo "::debug::Previous SHA: $PREVIOUS_SHA"
|
||||
fi
|
||||
else
|
||||
git fetch --no-tags -u --progress origin --depth=1 "$INPUT_BASE_SHA"; exit_status=$?
|
||||
git fetch --no-tags -u --progress origin --depth=1 "$(git rev-parse --verify "$INPUT_BASE_SHA")"; exit_status=$?
|
||||
PREVIOUS_SHA=$INPUT_BASE_SHA
|
||||
TARGET_BRANCH=$(git name-rev --name-only "$PREVIOUS_SHA" 2>&1); exit_status=$?
|
||||
echo "::debug::Previous SHA: $PREVIOUS_SHA"
|
||||
|
|
Loading…
Reference in a new issue