Skip to content

Commit

Permalink
Adding IG params (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
janorivera authored Oct 17, 2024
1 parent 728a697 commit 083d59a
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/actions/custom-actions/aselo_staging_custom/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,29 @@ runs:
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"
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_398416306680981_Aselo-Staging"
env_variable_name: "FACEBOOK_PAGE_ACCESS_TOKEN"
- name: Set helpline Instagram Studio Flow SID
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
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
- name: Add TELEGRAM_FLEX_BOT_TOKEN
run: echo "TELEGRAM_FLEX_BOT_TOKEN=${{ env.TELEGRAM_FLEX_BOT_TOKEN }}" >> .env
Expand All @@ -94,4 +117,16 @@ runs:
- 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_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 083d59a

Please sign in to comment.