From 384f41b675c0fe85b34f0d655bcdbac720eb558f Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 12 Nov 2022 16:13:58 -0700 Subject: [PATCH] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index c96b798..d8b239d 100644 --- a/action.yml +++ b/action.yml @@ -92,7 +92,7 @@ runs: run: | # "Set the default branch name..." if [[ "${{ github.ref }}" != "refs/tags/"* ]]; then - if [[ "${{ steps.current_branch.outputs.current_branch }}" == "${{ github.event.repository.default_branch }}" && "${{ github.event.head.fork }}" != "true" ]]; then + if [[ "${{ steps.current_branch.outputs.current_branch }}" == "${{ github.event.repository.default_branch }}" && "${{ github.event.pull_request.head.fork }}" != "true" ]]; then if [[ -z "$GITHUB_OUTPUT" ]]; then echo "::set-output name=is_default::true" echo "::set-output name=default_branch::${{ github.event.repository.default_branch }}"