diff --git a/.github/actions/custom-actions/thailand_staging_custom/action.yml b/.github/actions/custom-actions/thailand_staging_custom/action.yml index d73ed946..fffe62be 100644 --- a/.github/actions/custom-actions/thailand_staging_custom/action.yml +++ b/.github/actions/custom-actions/thailand_staging_custom/action.yml @@ -18,11 +18,11 @@ runs: using: "composite" steps: # Line environment variables - - name: Set helpline Line Flex Flow SID + - name: Set helpline Line Studio Flow SID uses: "marvinpinto/action-inject-ssm-secrets@latest" with: - ssm_parameter: "STG_TWILIO_TH_LINE_FLEX_FLOW_SID" - env_variable_name: "LINE_FLEX_FLOW_SID" + ssm_parameter: "/staging/twilio/${{inputs.account-sid}}/line_studio_flow_sid" + env_variable_name: "LINE_STUDIO_FLOW_SID" - name: Set Line Channel Secret uses: "marvinpinto/action-inject-ssm-secrets@latest" with: @@ -33,6 +33,11 @@ runs: with: ssm_parameter: "/staging/line/${{inputs.account-sid}}/channel_access_token" env_variable_name: "LINE_CHANNEL_ACCESS_TOKEN" + - name: Set helpline Line Flex Messaging Mode (Programmable Chat or Conversations) + uses: "marvinpinto/action-inject-ssm-secrets@latest" + with: + ssm_parameter: "/staging/line/${{inputs.account-sid}}/messaging_mode" + env_variable_name: "LINE_TWILIO_MESSAGING_MODE" # Set Instagram variables - name: Set Aselo Facebook App Secret uses: "marvinpinto/action-inject-ssm-secrets@latest" @@ -50,8 +55,8 @@ runs: ssm_parameter: "STG_TWILIO_TH_INSTAGRAM_FLEX_FLOW_SID" env_variable_name: "INSTAGRAM_FLEX_FLOW_SID" # Append LINE environment variables - - name: Add LINE_FLEX_FLOW_SID - run: echo "LINE_FLEX_FLOW_SID=${{ env.LINE_FLEX_FLOW_SID }}" >> .env + - name: Add LINE_STUDIO_FLOW_SID + run: echo "LINE_STUDIO_FLOW_SID=${{ env.LINE_STUDIO_FLOW_SID }}" >> .env shell: bash - name: Add LINE_CHANNEL_SECRET run: echo "LINE_CHANNEL_SECRET=${{ env.LINE_CHANNEL_SECRET }}" >> .env @@ -59,6 +64,9 @@ runs: - name: Add LINE_CHANNEL_ACCESS_TOKEN run: echo "LINE_CHANNEL_ACCESS_TOKEN=${{ env.LINE_CHANNEL_ACCESS_TOKEN }}" >> .env shell: bash + - name: Add LINE_TWILIO_MESSAGING_MODE + run: echo "LINE_TWILIO_MESSAGING_MODE=${{ env.LINE_TWILIO_MESSAGING_MODE }}" >> .env + shell: bash # Append INSTAGRAM environment variables - name: Add FACEBOOK_APP_SECRET run: echo "FACEBOOK_APP_SECRET=${{ env.FACEBOOK_APP_SECRET }}" >> .env