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