From ca530b2cc6f14cf90a92e434e0dd188e90f2477f Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 17 May 2021 04:39:42 -0400 Subject: [PATCH] Exit with error when HEAD sha is empty (#77) --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 314255d7..8c0851dd 100644 --- a/action.yml +++ b/action.yml @@ -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..."