From 8d034fabf3aa0eb74a196b86846b85f7ff0a95a5 Mon Sep 17 00:00:00 2001 From: sinehome <125361122+sinehome@users.noreply.github.com> Date: Tue, 22 Oct 2024 09:27:23 +0200 Subject: [PATCH] format (#709) --- .../kellimni_staging_custom/action.yml | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/actions/custom-actions/kellimni_staging_custom/action.yml b/.github/actions/custom-actions/kellimni_staging_custom/action.yml index e89021b3..7bf45cf1 100644 --- a/.github/actions/custom-actions/kellimni_staging_custom/action.yml +++ b/.github/actions/custom-actions/kellimni_staging_custom/action.yml @@ -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