From 615433a5a25ee5ba844bba10b16df565e96b6eae Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 13 Feb 2021 06:00:28 -0500 Subject: [PATCH] Update action.yml --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 388a455..62ffd50 100644 --- a/action.yml +++ b/action.yml @@ -55,8 +55,10 @@ runs: shell: bash - id: default run: | - if [[ "${{ steps.current_branch.outputs.current_branch }}" == "${{ steps.current_branch.outputs.base_ref_branch }}" ]]; then - echo "::set-output name=is_default::true" + if [[ -z "${{ steps.branch.outputs.head_ref_branch }}" ]]; then + if [[ "${{ steps.current_branch.outputs.current_branch }}" == "${{ steps.current_branch.outputs.ref_branch }}" ]]; then + echo "::set-output name=is_default::true" + fi else echo "::set-output name=is_default::false" fi