From 0619e2257d6a7419b8089a809722ee880e5f308d Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 13 Feb 2021 05:39:40 -0500 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4cb5c10..b32ac99 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,17 @@ jobs: echo "Base Ref: ${{ steps.branch-name.outputs.base_ref_branch }}" echo "Head Ref: ${{ steps.branch-name.outputs.head_ref_branch }}" echo "Ref: ${{ steps.branch-name.outputs.ref_branch }}" + echo "Is Default: ${{ steps.branch-name.outputs.is_default }}" + - name: Check is_default for pull request + if: github.event_name == 'pull_request' && steps.branch-name.outputs.is_default != 'false' + run: | + echo "Is default is invalid: ${{ steps.branch-name.outputs.is_default }}" + exit 1 + - name: Check is_default for non pull request + if: github.event_name != 'pull_request' && steps.branch-name.outputs.is_default != 'true' + run: | + echo "Is default is invalid: ${{ steps.branch-name.outputs.is_default }}" + exit 1 - name: Test base ref output if: github.event_name == 'pull_request' && !steps.branch-name.outputs.base_ref_branch run: |