From 8fcb60216172911db282b8006672aab5573ee692 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 13 Sep 2022 08:12:44 -0600 Subject: [PATCH] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 1c3078e8..3e9f5b23 100644 --- a/action.yml +++ b/action.yml @@ -166,7 +166,7 @@ runs: echo "::set-output name=base_sha::${{ inputs.base_sha }}" elif [[ "${{ inputs.since_last_remote_commit }}" == "true" ]]; then LAST_REMOTE_COMMIT="${{ github.event.before }}" - if [[ -z "$LAST_REMOTE_COMMIT" ]]; then + if [[ -z "$LAST_REMOTE_COMMIT" && "$LAST_REMOTE_COMMIT" != "0000000000000000000000000000000000000000" ]]; then LAST_REMOTE_COMMIT=$(git rev-parse $(git branch -r --sort=-committerdate | head -1)) fi if [[ "${{ inputs.sha }}" == "$LAST_REMOTE_COMMIT" ]]; then