Skip to content

Commit

Permalink
format (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinehome authored Oct 22, 2024
1 parent dabcb03 commit 8d034fa
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/actions/custom-actions/kellimni_staging_custom/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,32 @@ runs:
steps:
# Telegram environment variables
- name: Set Telegram Flex Bot Token
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "/staging/telegram/${{inputs.account-sid}}/flex_bot_token"
env_variable_name: "TELEGRAM_FLEX_BOT_TOKEN"
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "/staging/telegram/${{inputs.account-sid}}/flex_bot_token"
env_variable_name: "TELEGRAM_FLEX_BOT_TOKEN"
- name: Set Telegram Bot Api Secret Token
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "/staging/telegram/${{inputs.account-sid}}/bot_api_secret_token"
env_variable_name: "TELEGRAM_BOT_API_SECRET_TOKEN"
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "/staging/telegram/${{inputs.account-sid}}/bot_api_secret_token"
env_variable_name: "TELEGRAM_BOT_API_SECRET_TOKEN"
- name: Set helpline Telegram Studio Flow SID
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "/staging/twilio/${{inputs.account-sid}}/telegram_studio_flow_sid"
env_variable_name: "TELEGRAM_STUDIO_FLOW_SID"
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "/staging/twilio/${{inputs.account-sid}}/telegram_studio_flow_sid"
env_variable_name: "TELEGRAM_STUDIO_FLOW_SID"
- name: Set helpline serverless URL
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "/staging/serverless/${{inputs.account-sid}}/base_url"
env_variable_name: "SERVERLESS_BASE_URL"
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "/staging/serverless/${{inputs.account-sid}}/base_url"
env_variable_name: "SERVERLESS_BASE_URL"
- name: Set Telegram flex bot webhook
shell: bash
run: |
curl --request POST \
--header "Content-Type: application/json" \
--url "https://api.telegram.org/bot${{ env.TELEGRAM_FLEX_BOT_TOKEN }}/setWebhook" \
--data '{ "url": "${{ env.SERVERLESS_BASE_URL }}/webhooks/telegram/TelegramToFlex", "secret_token": "${{ env.TELEGRAM_BOT_API_SECRET_TOKEN }}" }'
shell: bash
run: |
curl --request POST \
--header "Content-Type: application/json" \
--url "https://api.telegram.org/bot${{ env.TELEGRAM_FLEX_BOT_TOKEN }}/setWebhook" \
--data '{ "url": "${{ env.SERVERLESS_BASE_URL }}/webhooks/telegram/TelegramToFlex", "secret_token": "${{ env.TELEGRAM_BOT_API_SECRET_TOKEN }}" }'
# Append environment variables
- name: Add TELEGRAM_FLEX_BOT_TOKEN
Expand Down

0 comments on commit 8d034fa

Please sign in to comment.