From f72840d8c187c7376cf7904b32a8b77e6072dd88 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Fri, 20 Dec 2024 21:06:56 -0500 Subject: [PATCH] chore: from json --- .github/workflows/dockerhub-release-matrix.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dockerhub-release-matrix.yml b/.github/workflows/dockerhub-release-matrix.yml index 5bbc676d1..b010c1259 100644 --- a/.github/workflows/dockerhub-release-matrix.yml +++ b/.github/workflows/dockerhub-release-matrix.yml @@ -183,7 +183,7 @@ jobs: run: | nix run nixpkgs#nushell -- -c ' # Parse the matrix configuration directly - let matrix_config = ${{ fromJson(needs.prepare.outputs.matrix_config) }} + let matrix_config = (${{ toJson(needs.prepare.outputs.matrix_config) }} | from json) # Get versions directly from include array let versions = ($matrix_config.include | get version) @@ -191,7 +191,7 @@ jobs: echo "Versions: $versions" # Convert the versions to a comma-separated string - let versions_str = ($versions | join ",") + let versions_str = ($versions | str join ",") $"versions=$versions_str" | save --append $env.GITHUB_ENV ' - name: Download Results Artifacts