Skip to content

Commit

Permalink
update variables (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinehome authored Aug 21, 2024
1 parent d42d2da commit 4ec3556
Showing 1 changed file with 13 additions and 5 deletions.
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 @@ -18,11 +18,11 @@ runs:
using: "composite"
steps:
# Line environment variables
- name: Set helpline Line Flex Flow SID
- name: Set helpline Line Studio Flow SID
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "STG_TWILIO_TH_LINE_FLEX_FLOW_SID"
env_variable_name: "LINE_FLEX_FLOW_SID"
ssm_parameter: "/staging/twilio/${{inputs.account-sid}}/line_studio_flow_sid"
env_variable_name: "LINE_STUDIO_FLOW_SID"
- name: Set Line Channel Secret
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
Expand All @@ -33,6 +33,11 @@ runs:
with:
ssm_parameter: "/staging/line/${{inputs.account-sid}}/channel_access_token"
env_variable_name: "LINE_CHANNEL_ACCESS_TOKEN"
- name: Set helpline Line Flex Messaging Mode (Programmable Chat or Conversations)
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
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"
Expand All @@ -50,15 +55,18 @@ runs:
ssm_parameter: "STG_TWILIO_TH_INSTAGRAM_FLEX_FLOW_SID"
env_variable_name: "INSTAGRAM_FLEX_FLOW_SID"
# Append LINE environment variables
- name: Add LINE_FLEX_FLOW_SID
run: echo "LINE_FLEX_FLOW_SID=${{ env.LINE_FLEX_FLOW_SID }}" >> .env
- name: Add LINE_STUDIO_FLOW_SID
run: echo "LINE_STUDIO_FLOW_SID=${{ env.LINE_STUDIO_FLOW_SID }}" >> .env
shell: bash
- name: Add LINE_CHANNEL_SECRET
run: echo "LINE_CHANNEL_SECRET=${{ env.LINE_CHANNEL_SECRET }}" >> .env
shell: bash
- name: Add LINE_CHANNEL_ACCESS_TOKEN
run: echo "LINE_CHANNEL_ACCESS_TOKEN=${{ env.LINE_CHANNEL_ACCESS_TOKEN }}" >> .env
shell: bash
- name: Add LINE_TWILIO_MESSAGING_MODE
run: echo "LINE_TWILIO_MESSAGING_MODE=${{ env.LINE_TWILIO_MESSAGING_MODE }}" >> .env
shell: bash
# Append INSTAGRAM environment variables
- name: Add FACEBOOK_APP_SECRET
run: echo "FACEBOOK_APP_SECRET=${{ env.FACEBOOK_APP_SECRET }}" >> .env
Expand Down

0 comments on commit 4ec3556

Please sign in to comment.