Skip to content

Commit

Permalink
checking .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
yairsimantov20 committed Feb 20, 2024
1 parent 54b3810 commit 44d8edf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sail/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ runs:
echo "OCEAN__PORT__CLIENT_ID=${{ inputs.port_client_id }}" >> .env
echo "OCEAN__PORT__CLIENT_SECRET=${{ inputs.port_client_secret }}" >> .env
echo "${{ inputs.config }}" | yq eval "keys"
if [[ "${{ inputs.config }}" ]]; then
for key in $(echo "${{ inputs.config }}" | yq eval "keys"); do
value=$(echo "${{ inputs.config }}" | yq eval ".$key")
echo "key=$key"
echo "value=$value"
echo "OCEAN__INTEGRATION__CONFIG__${key}=${value}" >> .env
done
fi
Expand Down

0 comments on commit 44d8edf

Please sign in to comment.