From a3164f525996a4814aa494e72cb106024d49acf5 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 7 Feb 2021 19:34:33 -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 55fca25..b8dde6e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,3 +38,14 @@ jobs: run: | echo "Ref unset: ${{ steps.branch-name.outputs.ref_branch }}" exit 1 + - name: Test current branch output for pull_request event. + if: github.event_name == 'pull_request' && !steps.branch-name.outputs.current_branch + run: | + echo "Current branch unset: ${{ steps.branch-name.outputs.current_branch }}" + exit 1 + - name: Test current branch output for push event. + if: github.event_name == 'push' && !steps.branch-name.outputs.current_branch + run: | + echo "Current branch unset: ${{ steps.branch-name.outputs.current_branch }}" + exit 1 +