From a15befe3817ad211210626157d250bae501f89ea Mon Sep 17 00:00:00 2001 From: Michael Duong Date: Wed, 4 Oct 2023 16:58:18 +0000 Subject: [PATCH] change sapmodel stack anme to be more general - remove change_ sed command --- .github/workflows/Deploy.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index c30ed97..48375c3 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -32,8 +32,7 @@ jobs: id: secret_prefix run: | # Convert branch name to uppercase and replace hyphens with underscores - # TODO: Remove the CHANGE line by changing the secrets name - echo "::set-output name=secret_prefix::$(echo "${{ github.ref_name }}" | sed 's/-/_change-/g' | tr 'a-z-' 'A-Z_')" + echo "::set-output name=secret_prefix::$(echo "${{ github.ref_name }}" | tr 'a-z-' 'A-Z_')" - name: Set domain name id: set_domain @@ -58,9 +57,9 @@ jobs: # Take branch prefix and add "model" for stack name stack_name=$( echo ${{ github.ref_name }} | awk -F"-" '{print $1}' | sed 's/$/model/g') if [ -z "${stack_name}" ]; then - echo "::set-output name=stack_name::${stack_name}" - else echo "::set-output name=stack_name::" + else + echo "::set-output name=stack_name::${stack_name}" fi - name: Set runtime_environment