Skip to content

Commit 9ced369

Browse files
committed
convert environments JSON array to compact format
1 parent e15aa60 commit 9ced369

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/infrastructure-ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ jobs:
8383
environments=("dev")
8484
fi
8585
86-
# Convert to JSON array
87-
environments_json=$(printf '%s\n' "${environments[@]}" | jq -R . | jq -s .)
86+
# Convert to compact JSON array
87+
environments_json=$(printf '%s\n' "${environments[@]}" | jq -R . | jq -s -c .)
8888
8989
echo "environments=${environments_json}" >> $GITHUB_OUTPUT
9090
echo "Environments to process: ${environments_json}" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)