Update 'current_branch' output to strip tag prefix

This commit is contained in:
Alejandro Loarca 2021-08-23 00:44:26 +00:00
parent 2840c25574
commit 5ced4fd6c2
No known key found for this signature in database
GPG Key ID: A8161A34CDABD1E8

View File

@ -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