Skip to content

Commit

Permalink
Conversations Migration - Instagram Staging (#674)
Browse files Browse the repository at this point in the history
* TH Instagram variables

* CO instagram variables

* remove flex flow variables JM
  • Loading branch information
sinehome authored Aug 23, 2024
1 parent 4ec3556 commit cc6df25
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
18 changes: 13 additions & 5 deletions .github/actions/custom-actions/teguio_staging_custom/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
18 changes: 13 additions & 5 deletions .github/actions/custom-actions/thailand_staging_custom/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit cc6df25

Please sign in to comment.