diff --git a/.github/actions/custom-actions/jamaica_staging_custom/action.yml b/.github/actions/custom-actions/jamaica_staging_custom/action.yml index 90192b71..ef884acb 100644 --- a/.github/actions/custom-actions/jamaica_staging_custom/action.yml +++ b/.github/actions/custom-actions/jamaica_staging_custom/action.yml @@ -32,11 +32,6 @@ runs: with: ssm_parameter: "FACEBOOK_PAGE_ACCESS_TOKEN_104423992367481_SafeSpot.Staging---JM" env_variable_name: "FACEBOOK_PAGE_ACCESS_TOKEN" - - name: Set helpline Instagram Flex Flow SID - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "STG_TWILIO_JM_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: @@ -54,9 +49,6 @@ runs: - name: Add FACEBOOK_PAGE_ACCESS_TOKEN run: echo "FACEBOOK_PAGE_ACCESS_TOKEN=${{ env.FACEBOOK_PAGE_ACCESS_TOKEN }}" >> .env shell: bash - - 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 diff --git a/.github/actions/custom-actions/teguio_staging_custom/action.yml b/.github/actions/custom-actions/teguio_staging_custom/action.yml index a224e15c..30c23a85 100644 --- a/.github/actions/custom-actions/teguio_staging_custom/action.yml +++ b/.github/actions/custom-actions/teguio_staging_custom/action.yml @@ -29,11 +29,16 @@ runs: with: ssm_parameter: "FACEBOOK_PAGE_ACCESS_TOKEN_102132102625343_Te-Gu-o---Staging" env_variable_name: "FACEBOOK_PAGE_ACCESS_TOKEN" - - name: Set helpline Instagram Flex Flow SID + - name: Set helpline Instagram Studio Flow SID uses: "marvinpinto/action-inject-ssm-secrets@latest" with: - ssm_parameter: "STG_TWILIO_CO_INSTAGRAM_FLEX_FLOW_SID" - env_variable_name: "INSTAGRAM_FLEX_FLOW_SID" + ssm_parameter: "/staging/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: "/staging/instagram/${{inputs.account-sid}}/messaging_mode" + env_variable_name: "INSTAGRAM_TWILIO_MESSAGING_MODE" # Append environment variables @@ -43,6 +48,9 @@ runs: - name: Add FACEBOOK_PAGE_ACCESS_TOKEN run: echo "FACEBOOK_PAGE_ACCESS_TOKEN=${{ env.FACEBOOK_PAGE_ACCESS_TOKEN }}" >> .env shell: bash - - name: Add INSTAGRAM_FLEX_FLOW_SID - run: echo "INSTAGRAM_FLEX_FLOW_SID=${{ env.INSTAGRAM_FLEX_FLOW_SID }}" >> .env + - 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 diff --git a/.github/actions/custom-actions/thailand_staging_custom/action.yml b/.github/actions/custom-actions/thailand_staging_custom/action.yml index fffe62be..bc34df62 100644 --- a/.github/actions/custom-actions/thailand_staging_custom/action.yml +++ b/.github/actions/custom-actions/thailand_staging_custom/action.yml @@ -49,11 +49,16 @@ runs: with: ssm_parameter: "FACEBOOK_PAGE_ACCESS_TOKEN_100136349533502_Childline-TH-Staging" env_variable_name: "FACEBOOK_PAGE_ACCESS_TOKEN" - - name: Set helpline Instagram Flex Flow SID + - name: Set helpline Instagram Studio Flow SID uses: "marvinpinto/action-inject-ssm-secrets@latest" with: - ssm_parameter: "STG_TWILIO_TH_INSTAGRAM_FLEX_FLOW_SID" - env_variable_name: "INSTAGRAM_FLEX_FLOW_SID" + ssm_parameter: "/staging/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: "/staging/instagram/${{inputs.account-sid}}/messaging_mode" + env_variable_name: "INSTAGRAM_TWILIO_MESSAGING_MODE" # Append LINE environment variables - name: Add LINE_STUDIO_FLOW_SID run: echo "LINE_STUDIO_FLOW_SID=${{ env.LINE_STUDIO_FLOW_SID }}" >> .env @@ -74,6 +79,9 @@ runs: - name: Add FACEBOOK_PAGE_ACCESS_TOKEN run: echo "FACEBOOK_PAGE_ACCESS_TOKEN=${{ env.FACEBOOK_PAGE_ACCESS_TOKEN }}" >> .env shell: bash - - name: Add INSTAGRAM_FLEX_FLOW_SID - run: echo "INSTAGRAM_FLEX_FLOW_SID=${{ env.INSTAGRAM_FLEX_FLOW_SID }}" >> .env + - 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