From 8b42663428c718e0bed4a16b2c6f1b72ecc67fed Mon Sep 17 00:00:00 2001 From: yair Date: Tue, 20 Feb 2024 14:54:39 +0200 Subject: [PATCH] checking .env file --- sail/action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sail/action.yml b/sail/action.yml index 1ca3beb..0aaed40 100644 --- a/sail/action.yml +++ b/sail/action.yml @@ -51,12 +51,16 @@ runs: run: | image_name="ghcr.io/port-labs/port-ocean-${{ inputs.type }}:${{ inputs.version }}" - echo "OCEAN__EVENT_LISTENER=\"{\"type\":\"${{ inputs.event_listener_type }}\"}\"" >> .env + echo "OCEAN__EVENT_LISTENER={\"type\":\"${{ inputs.event_listener_type }}\"}" >> .env echo "OCEAN__INITIALIZE_PORT_RESOURCES=${{ inputs.initialize_port_resources }}" >> .env - echo "OCEAN__INTEGRATION__CONFIG=${{ inputs.integration_config }}" >> .env echo "OCEAN__PORT__CLIENT_ID=${{ inputs.port_client_id }}" >> .env echo "OCEAN__PORT__CLIENT_SECRET=${{ inputs.port_client_secret }}" >> .env + INTEGRATION_CONFIG=$(echo ${{ inputs.integration_config }} | jq -r 'to_entries[] | "OCEAN__INTEGRATION__CONFIG__\(.key)=\(.value)"'') + for CONFIG in $INTEGRATION_CONFIG; do + echo $CONFIG >> .env + done + # Assuming additional_env_vars is a JSON object ENV_VARS_JSON="${{ inputs.additional_env_vars }}"