From f0982997ebda1773acae489ac2fabb1d833b7805 Mon Sep 17 00:00:00 2001 From: sinehome <125361122+sinehome@users.noreply.github.com> Date: Wed, 6 Nov 2024 21:38:23 +0200 Subject: [PATCH] Conversation Migration: MT Instagram (#717) * conversations parameters * SID * update --- .github/actions/custom-actions/action.yml | 2 ++ .../kellimni_production_custom/action.yml | 21 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/.github/actions/custom-actions/action.yml b/.github/actions/custom-actions/action.yml index cd7e79b7..0e196aa0 100644 --- a/.github/actions/custom-actions/action.yml +++ b/.github/actions/custom-actions/action.yml @@ -95,6 +95,8 @@ runs: - name: Kellimni Malta Production release custom action if: inputs.helpline-name == format('MT_PROD') uses: ./.github/actions/custom-actions/kellimni_production_custom + with: + account-sid: ${{ inputs.account-sid }} - name: Kellimni Malta Staging release custom action if: inputs.helpline-name == format('MT_STG') uses: ./.github/actions/custom-actions/kellimni_staging_custom diff --git a/.github/actions/custom-actions/kellimni_production_custom/action.yml b/.github/actions/custom-actions/kellimni_production_custom/action.yml index da6d6e34..50620f81 100644 --- a/.github/actions/custom-actions/kellimni_production_custom/action.yml +++ b/.github/actions/custom-actions/kellimni_production_custom/action.yml @@ -14,6 +14,10 @@ name: 'Kellimni MT Production release custom action' description: 'Sets up environment variables related to non-standard additional features in use in the beta environment' +inputs: + account-sid: + description: 'The Twilio Account SID for this account' + required: true runs: using: "composite" steps: @@ -33,6 +37,16 @@ runs: with: ssm_parameter: "PROD_TWILIO_MT_INSTAGRAM_FLEX_FLOW_SID" env_variable_name: "INSTAGRAM_FLEX_FLOW_SID" + - name: Set helpline Instagram Studio Flow SID + uses: "marvinpinto/action-inject-ssm-secrets@latest" + with: + ssm_parameter: "/production/twilio/${{inputs.account-sid}}/instagram_studio_flow_sid" + env_variable_name: "INSTAGRAM_STUDIO_FLOW_SID" + - name: Set helpline Instagram Flex Messaging Mode (Programmable Chat or Conversations) + uses: "marvinpinto/action-inject-ssm-secrets@latest" + with: + ssm_parameter: "/production/instagram/${{inputs.account-sid}}/messaging_mode" + env_variable_name: "INSTAGRAM_TWILIO_MESSAGING_MODE" # Append environment variables - name: Add FACEBOOK_APP_SECRET @@ -44,3 +58,10 @@ runs: - name: Add INSTAGRAM_FLEX_FLOW_SID run: echo "INSTAGRAM_FLEX_FLOW_SID=${{ env.INSTAGRAM_FLEX_FLOW_SID }}" >> .env shell: bash + - name: Add INSTAGRAM_STUDIO_FLOW_SID + run: echo "INSTAGRAM_STUDIO_FLOW_SID=${{ env.INSTAGRAM_STUDIO_FLOW_SID }}" >> .env + shell: bash + - name: Add INSTAGRAM_TWILIO_MESSAGING_MODE + run: echo "INSTAGRAM_TWILIO_MESSAGING_MODE=${{ env.INSTAGRAM_TWILIO_MESSAGING_MODE }}" >> .env + shell: bash + \ No newline at end of file