From b5908160e23672871f8989cd41b776eca85a5946 Mon Sep 17 00:00:00 2001 From: Matt Dragon Date: Fri, 22 Nov 2024 17:16:49 -0500 Subject: [PATCH] Clean up fromJSON usage --- .github/workflows/cd-metabase.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd-metabase.yml b/.github/workflows/cd-metabase.yml index 64873b844..736a84847 100644 --- a/.github/workflows/cd-metabase.yml +++ b/.github/workflows/cd-metabase.yml @@ -26,7 +26,7 @@ jobs: max-parallel: 1 fail-fast: false matrix: - envs: ${{ inputs.environment != null && fromJSON(format('["{0}"]', inputs.environment)) || github.event_name == 'release' && fromJSON('["prod"]') || github.ref_name == 'main' && fromJSON('["dev", "staging"]') || fromJSON('["dev"]') }} + envs: ${{ fromJson(inputs.environment != null && format('["{0}"]', inputs.environment) || github.event_name == 'release' && '["prod"]' || github.ref_name == 'main' && '["dev", "staging"]' || '["dev"]') }} with: version: ${{ inputs.image-tag }} environment: ${{ matrix.envs }}