From 5ced4fd6c2d26142a4419bf719aca62fa83af4b2 Mon Sep 17 00:00:00 2001 From: Alejandro Loarca Date: Mon, 23 Aug 2021 00:44:26 +0000 Subject: [PATCH] Update 'current_branch' output to strip tag prefix --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index d148117..d610aa7 100644 --- a/action.yml +++ b/action.yml @@ -55,7 +55,7 @@ runs: fi else REF=${{ github.ref }} - REF_BRANCH=${REF/refs\/tags\//} + REF_BRANCH=${REF/refs\/tags\/${{ inputs.strip_tag_prefix }}/} echo "::set-output name=current_branch::$REF_BRANCH" fi shell: bash