From 032d60a53736fac9dff91ff6f0a30f9deb16b053 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 25 May 2021 12:30:04 -0400 Subject: [PATCH] Added test for current_branch on release actions --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index da942fd..127dbf7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -63,6 +63,11 @@ jobs: run: | echo "Current branch unset: ${{ steps.branch-name.outputs.current_branch }}" exit 1 + - name: Test current branch output for tag based push event. + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && !steps.branch-name.outputs.current_branch + run: | + echo "Current branch unset: ${{ steps.branch-name.outputs.current_branch }}" + exit 1 - name: Test current tag for push events. if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && !steps.branch-name.outputs.tag run: |