From d17953f9f019cdb2eb353075fecbcfcba5a813c6 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Fri, 29 Dec 2023 15:51:51 +0000 Subject: [PATCH] test json loads --- .github/actions/python/send-email/__main__.py | 2 +- .github/actions/python/send-email/action.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/python/send-email/__main__.py b/.github/actions/python/send-email/__main__.py index 7afa3522..a8a6b830 100644 --- a/.github/actions/python/send-email/__main__.py +++ b/.github/actions/python/send-email/__main__.py @@ -25,7 +25,7 @@ def get_settings(): A tuple with the values (region, auth, timeout). """ - region = os.getenv("REGION", "") + region = json.loads(os.getenv("REGION", "")) assert region != "", "Region path parameter not set." raise Exception(region) diff --git a/.github/actions/python/send-email/action.yaml b/.github/actions/python/send-email/action.yaml index fc0b15e4..b0254228 100644 --- a/.github/actions/python/send-email/action.yaml +++ b/.github/actions/python/send-email/action.yaml @@ -55,8 +55,8 @@ runs: TO_ADDRESSES: ${{ inputs.to-addresses }} CC_ADDRESSES: ${{ inputs.cc-addresses }} BCC_ADDRESSES: ${{ inputs.bcc-addresses }} - FROM_ADDRESS: ${{ inputs.from-address }} + FROM_ADDRESS: "${{ inputs.from-address }}" CAMPAIGN_ID: ${{ inputs.campaign-id }} PERSONALIZATION_VALUES: ${{ inputs.personalization-values }} - METADATA: ${{ inputs.metadata }} + METADATA: "${{ inputs.metadata }}" ATTACHMENTS: ${{ inputs.attachments }}