From b70866c764d429d976e98b2585778f2f25643023 Mon Sep 17 00:00:00 2001 From: florimondmanca Date: Mon, 20 Jan 2025 16:42:46 +0100 Subject: [PATCH] Fix Litteralis Import : "A value containing spaces must be surrounded by quotes" --- .github/workflows/litteralis_import.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/litteralis_import.yml b/.github/workflows/litteralis_import.yml index 230486587..c54edbaae 100644 --- a/.github/workflows/litteralis_import.yml +++ b/.github/workflows/litteralis_import.yml @@ -54,12 +54,14 @@ jobs: run: | echo "DATABASE_URL=${{ secrets.APP_LITTERALIS_IMPORT_DATABASE_URL }}" >> .env.local echo "BDTOPO_DATABASE_URL=${{ secrets.BDTOPO_DATABASE_URL }}" >> .env.local - echo "APP_LITTERALIS_ENABLED_ORGS=${{ vars.APP_LITTERALIS_ENABLED_ORGS }}" >> .env.local + # Deal with JSON quotes + printf "APP_LITTERALIS_ENABLED_ORGS='%s'\n" '${{ vars.APP_LITTERALIS_ENABLED_ORGS }}' >> .env.local - name: Override enabled orgs if defined by input if: ${{ inputs.enabled_orgs }} run: | - echo "APP_LITTERALIS_ENABLED_ORGS=${{ inputs.enabled_orgs }}" >> .env.local + # Deal with JSON quotes + printf "APP_LITTERALIS_ENABLED_ORGS='%s'\n" '${{ inputs.enabled_orgs }}' >> .env.local - name: Init organization environment variables run: |