From 19ca3ee37479adbeeb82c6232cf8e5a596ee7fe7 Mon Sep 17 00:00:00 2001 From: Joseph Flinn <58369717+joseph-flinn@users.noreply.github.com> Date: Wed, 27 Oct 2021 12:44:54 -0700 Subject: [PATCH] Enabling deploys to the QA environment from branches with slashes in the name (#1673) --- .github/workflows/qa-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/qa-deploy.yml b/.github/workflows/qa-deploy.yml index 3387681336..35ef5cbc25 100644 --- a/.github/workflows/qa-deploy.yml +++ b/.github/workflows/qa-deploy.yml @@ -85,7 +85,7 @@ jobs: echo "NAME_LOWER: $NAME_LOWER" echo "::set-output name=name_lower::$NAME_LOWER" - BRANCH_NAME=$(echo "$GITHUB_REF" | awk '{split($0, a, "/"); print a[3]}') + BRANCH_NAME=$(echo "$GITHUB_REF" | sed "s#refs/heads/##g") echo "GITHUB_REF: $GITHUB_REF" echo "BRANCH_NAME: $BRANCH_NAME" echo "::set-output name=branch_name::$BRANCH_NAME"