Skip to content

Commit

Permalink
Update action so that branch can contain slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
bummzack committed Oct 22, 2020
1 parent bf24f30 commit f064c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f064c5c

Please sign in to comment.