Skip to content

Commit

Permalink
custom action nz
Browse files Browse the repository at this point in the history
  • Loading branch information
janorivera committed Dec 16, 2024
1 parent dd7b8ed commit 603ffd4
Showing 1 changed file with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,28 @@ runs:
ssm_parameter: "/production/modica/${{inputs.account-sid}}/messaging_mode"
env_variable_name: "MODICA_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_134818612864_Youthline"
env_variable_name: "FACEBOOK_PAGE_ACCESS_TOKEN"
- 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 MODICA_APP_NAME
run: echo "MODICA_APP_NAME=${{ env.MODICA_APP_NAME }}" >> .env
Expand All @@ -65,3 +87,18 @@ runs:
- name: Add MODICA_TWILIO_MESSAGING_MODE
run: echo "MODICA_TWILIO_MESSAGING_MODE=${{ env.MODICA_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_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 603ffd4

Please sign in to comment.