From 8c766cffe7c97344358183ab9322125ebef8e69e Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Thu, 8 Dec 2022 12:32:51 -0700 Subject: [PATCH 1/3] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 43e1463a..9af600be 100644 --- a/action.yml +++ b/action.yml @@ -173,7 +173,7 @@ runs: GITHUB_BASE_REF: ${{ github.base_ref }} GITHUB_HEAD_REF: ${{ github.head_ref }} GITHUB_WORKSPACE: ${{ github.workspace }} - GITHUB_HEAD_REPO_FORK: ${{ github.event.pull_request.head.repo.fork }} + GITHUB_EVENT_HEAD_REPO_FORK: ${{ github.event.pull_request.head.repo.fork }} GITHUB_EVENT_PULL_REQUEST_BASE_SHA: ${{ github.event.pull_request.base.sha }} GITHUB_EVENT_BEFORE: ${{ github.event.before }} GITHUB_EVENT_FORCED: ${{ github.event.forced }} From 385d98db7380f7134605508111d1548e8ff65dc1 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Thu, 8 Dec 2022 12:34:38 -0700 Subject: [PATCH 2/3] Update diff-sha.sh --- diff-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-sha.sh b/diff-sha.sh index 01b41458..b6c5e9a5 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -13,7 +13,7 @@ if [[ "$GITHUB_REF" == "refs/tags/"* ]]; then EXTRA_ARGS="" fi -if [[ "$GITHUB_HEAD_REPO_FORK" == "true" ]]; then +if [[ "$GITHUB_EVENT_HEAD_REPO_FORK" == "true" ]]; then MERGE_BASE_EXRTRA_ARGS="--fork-point" fi From 4b60d05705844aaa50eef0a61652b349c6e4ca01 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Thu, 8 Dec 2022 12:43:50 -0700 Subject: [PATCH 3/3] Update action.yml --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 9af600be..31330112 100644 --- a/action.yml +++ b/action.yml @@ -175,6 +175,7 @@ runs: GITHUB_WORKSPACE: ${{ github.workspace }} GITHUB_EVENT_HEAD_REPO_FORK: ${{ github.event.pull_request.head.repo.fork }} GITHUB_EVENT_PULL_REQUEST_BASE_SHA: ${{ github.event.pull_request.base.sha }} + GITHUB_EVENT_PULL_REQUEST_HEAD_SHA: ${{ github.event.pull_request.head.sha }} GITHUB_EVENT_BEFORE: ${{ github.event.before }} GITHUB_EVENT_FORCED: ${{ github.event.forced }} GITHUB_REFNAME: ${{ github.ref_name }}