mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-21 05:28:14 +00:00
fix: error retrieving the base sha
This commit is contained in:
parent
5a03253d72
commit
29b8f500c2
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ elif [[ "$INPUT_SINCE_LAST_REMOTE_COMMIT" == "true" ]]; then
|
|||
LAST_REMOTE_COMMIT=$(git rev-parse "$(git branch -r --sort=-committerdate | head -1 | xargs)")
|
||||
fi
|
||||
if [[ "$INPUT_SHA" == "$LAST_REMOTE_COMMIT" ]]; then
|
||||
LAST_REMOTE_COMMIT=$(git rev-parse "$INPUT_SHA^1")
|
||||
LAST_REMOTE_COMMIT=$(git rev-parse $INPUT_SHA^1)
|
||||
fi
|
||||
echo "::set-output name=base_sha::$LAST_REMOTE_COMMIT"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue