3
0
Fork 0
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:
Tonye Jack 2022-10-01 08:53:56 -06:00 committed by GitHub
parent 5a03253d72
commit 29b8f500c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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