Skip to content

Commit

Permalink
Merge pull request #524 from techmatters/CHI-2213_migrate_e2e_account…
Browse files Browse the repository at this point in the history
…_autopilot_lex

Chi 2213 migrate e2e account autopilot lex
  • Loading branch information
acedeywin authored Oct 27, 2023
2 parents cdc4469 + 0c7efd4 commit 094a8e7
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/deploy-multiple-accounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,28 @@ jobs:
with:
ssm_parameter: ${{env.TWILIO_SSM_PREFIX}}_POST_SURVEY_BOT_CHAT_URL
env_variable_name: POST_SURVEY_BOT_CHAT_URL

# Since we can't provision a lex chat bot with e2e as the helpline code
# we will have to change the helpline code for the E2E account to "ee" on serverless
- name: Set Helpline Code for E2E Account
if: matrix.helpline_code == 'E2E'
uses: marvinpinto/action-inject-ssm-secrets@latest
with:
ssm_parameter: ${{env.TWILIO_SSM_PREFIX}}_HELPLINE_CODE
env_variable_name: HELPLINE_CODE

- name: Check and Set Helpline Code
if: matrix.helpline_code == 'E2E'
run: |
echo "Setting helpline-code to $HELPLINE_CODE"
echo "HELPLINE_CODE=$HELPLINE_CODE" >> $GITHUB_ENV
- name: Set Helpline Code (else part)
if: matrix.helpline_code != 'E2E'
run: |
echo "Setting helpline-code to matrix.helpline_code"
echo "HELPLINE_CODE=${{ matrix.helpline_code }}" >> $GITHUB_ENV
- name: Set AWS credentials for Aselo user
uses: marvinpinto/action-inject-ssm-secrets@latest
with:
Expand Down Expand Up @@ -171,7 +193,7 @@ jobs:
aselo-app-secret-key: $ASELO_APP_SECRET_KEY
aws-region: $HELPLINE_AWS_REGION
s3-bucket: $S3_BUCKET
helpline-code: ${{matrix.helpline_code}}
helpline-code: "${{env.HELPLINE_CODE}}"
environment-code: ${{matrix.environment_code}}
environment: ${{env.FULL_ENVIRONMENT_NAME}}
# Set 'false' if the target environment is production OR the force_enable_operating_hours override option is checked - otherwise 'true'
Expand Down

0 comments on commit 094a8e7

Please sign in to comment.