From 5a94206c07c0e854170274bc1b096ccb8c688242 Mon Sep 17 00:00:00 2001 From: Tommy Gatti Date: Thu, 1 Aug 2024 15:15:01 +1000 Subject: [PATCH] Change step output from update to updates --- .github/workflows/settings-1-update.yml | 6 ++---- config/settings.json | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/settings-1-update.yml b/.github/workflows/settings-1-update.yml index de3aed4..737c991 100644 --- a/.github/workflows/settings-1-update.yml +++ b/.github/workflows/settings-1-update.yml @@ -77,9 +77,7 @@ jobs: echo "$update" # Replace all '"' in $update with '\"' so GitHub's fromJson(...) interprets it correctly. - echo "update<> $GITHUB_OUTPUT - echo "${update//\"/\\\"}" >> $GITHUB_OUTPUT - echo "ENDJSON" >> $GITHUB_OUTPUT + echo "updates=$update" >> $GITHUB_OUTPUT # update=$(jq --raw-output --compact-output \ # '[.deployment | to_entries[] | .key as $d | .value | to_entries[] | { @@ -99,7 +97,7 @@ jobs: strategy: fail-fast: false matrix: - update: ${{ fromJson(needs.setup-settings-update.outputs.updates) }} + update: ${{ needs.setup-settings-update.outputs.updates }} # Example of this matrix: # update: # - deployment-environment: Gadi diff --git a/config/settings.json b/config/settings.json index ddc537f..8330095 100644 --- a/config/settings.json +++ b/config/settings.json @@ -18,4 +18,3 @@ } } } -