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: |