From f112ebf22e86c6132b9ab2c6a9b3321f1ef100b6 Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Thu, 2 Nov 2023 12:41:42 +0200 Subject: [PATCH] Facebook & Instagram env vars --- .../aselo_production_custom/action.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/actions/custom-actions/aselo_production_custom/action.yml b/.github/actions/custom-actions/aselo_production_custom/action.yml index 3f1f6894..f69eb670 100644 --- a/.github/actions/custom-actions/aselo_production_custom/action.yml +++ b/.github/actions/custom-actions/aselo_production_custom/action.yml @@ -37,6 +37,21 @@ runs: with: ssm_parameter: "PROD_LINE_AS_CHANNEL_ACCESS_TOKEN" env_variable_name: "LINE_CHANNEL_ACCESS_TOKEN" + - 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 @@ -46,4 +61,13 @@ runs: shell: bash - name: Add LINE_CHANNEL_ACCESS_TOKEN run: echo "LINE_CHANNEL_ACCESS_TOKEN=${{ env.LINE_CHANNEL_ACCESS_TOKEN }}" >> .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 \ No newline at end of file