From f064c5cd6a1e2ce8b18932bc2bcfcfb8f17f7356 Mon Sep 17 00:00:00 2001 From: Roman Schmid Date: Thu, 22 Oct 2020 14:12:39 +0200 Subject: [PATCH] Update action so that branch can contain slashes --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index d9d174b..10d248c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,7 +9,7 @@ source_path="$GITHUB_WORKSPACE/$source_dir" build_suffix=${INPUT_SUFFIX:--build} # GITHUB_REF and GITHUB_REPOSITORY are part of the default ENV variables from Github -branch=${GITHUB_REF##*/} +branch=$(echo ${GITHUB_REF} | sed -e "s/refs\/heads\///g") build_repo="${GITHUB_REPOSITORY}${build_suffix}" if [ ! -z "$INPUT_ORGANISATION" ]; then