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:
parent
d6a0e35f63
commit
ca530b2cc6
1 changed files with 1 additions and 0 deletions
|
@ -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..."
|
||||
|
||||
|
|
Loading…
Reference in a new issue