From d6cfbc028a637623ad2c58d9f7c081297320fd8e Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 15 May 2023 14:32:27 -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 b8f2096..d533e70 100644 --- a/action.yml +++ b/action.yml @@ -40,7 +40,7 @@ runs: run: | # "Set branch names..." if [[ "${{ github.ref }}" != "refs/tags/"* ]]; then - BASE_REF=$(printf "%q" "${{ github.base_ref }}") + BASE_REF=$(printf "%q" "${{ github.event.pull_request.base.ref || github.base_ref }}") HEAD_REF=$(printf "%q" "${{ github.event.pull_request.head.ref || github.head_ref }}") REF=$(printf "%q" "${{ github.ref }}")