Skip to content

Commit

Permalink
chore: from json
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose committed Dec 21, 2024
1 parent 62f5ee2 commit f72840d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dockerhub-release-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ 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)

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
Expand Down

0 comments on commit f72840d

Please sign in to comment.