Skip to content

Commit

Permalink
AS Production Conversation Migrations (#666)
Browse files Browse the repository at this point in the history
* Update line actions for conversations (#665)

* Line and Instagram variables
  • Loading branch information
sinehome authored Aug 14, 2024
1 parent de52b68 commit a50a6be
Showing 1 changed file with 41 additions and 5 deletions.
46 changes: 41 additions & 5 deletions .github/actions/custom-actions/aselo_production_custom/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,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: "PROD_TWILIO_AS_LINE_FLEX_FLOW_SID"
env_variable_name: "LINE_FLEX_FLOW_SID"
ssm_parameter: "/production/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:
Expand All @@ -37,13 +37,49 @@ runs:
with:
ssm_parameter: "/production/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: "/production/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"
with:
ssm_parameter: "FACEBOOK_APP_SECRET"
env_variable_name: "FACEBOOK_APP_SECRET"
- name: Set helpline Facebook Page Access Token
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "FACEBOOK_PAGE_ACCESS_TOKEN_105642325869250_Aselo-Prod-Test"
env_variable_name: "FACEBOOK_PAGE_ACCESS_TOKEN"
- name: Set helpline Instagram Flex Flow SID
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "PROD_TWILIO_AS_INSTAGRAM_FLEX_FLOW_SID"
env_variable_name: "INSTAGRAM_FLEX_FLOW_SID"

# Append 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
shell: bash
- 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

- name: Add FACEBOOK_APP_SECRET
run: echo "FACEBOOK_APP_SECRET=${{ env.FACEBOOK_APP_SECRET }}" >> .env
shell: bash
- 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

0 comments on commit a50a6be

Please sign in to comment.