From 295dfdbacdc810bd757874489f8895b6fedbb147 Mon Sep 17 00:00:00 2001 From: janorivera Date: Thu, 17 Oct 2024 17:13:54 -0300 Subject: [PATCH] NZ STG: Adding IG params --- .../youthline_staging_custom/action.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/actions/custom-actions/youthline_staging_custom/action.yml b/.github/actions/custom-actions/youthline_staging_custom/action.yml index 09d26eaa..e4061a0b 100644 --- a/.github/actions/custom-actions/youthline_staging_custom/action.yml +++ b/.github/actions/custom-actions/youthline_staging_custom/action.yml @@ -44,6 +44,29 @@ runs: ssm_parameter: "/staging/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_453194187877367_NZ-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 MODICA_APP_NAME run: echo "MODICA_APP_NAME=${{ env.MODICA_APP_NAME }}" >> .env @@ -56,4 +79,16 @@ runs: shell: bash - 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 \ No newline at end of file