3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2024-12-16 19:27:39 +00:00

Exit with error when HEAD sha is empty (#77)

This commit is contained in:
Tonye Jack 2021-05-17 04:39:42 -04:00 committed by GitHub
parent d6a0e35f63
commit ca530b2cc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,6 +73,7 @@ runs:
if [[ -z $HEAD_SHA ]]; then
echo "::warning::Unable to determine the head sha: $HEAD_SHA."
echo "::warning::You seem to be missing `fetch-depth: 0` or `fetch-depth: 2`"
exit 1
else
echo "Using head sha: $HEAD_SHA..."