Skip to content

Commit

Permalink
chore: convert table to list of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose committed Dec 20, 2024
1 parent 6f7ce25 commit 90a45f4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/dockerhub-release-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,17 +181,19 @@ jobs:
# Parse the matrix configuration directly
let matrix_config = ${{ fromJson(needs.prepare.outputs.matrix_config) }}
# Extract the versions as a list
let versions = $matrix_config.include | get version
echo "Versions: $versions"
let versions_str = ($versions | join ",")
# Convert the table of versions to a simple list of strings
let versions_str = ($versions | get version | join ",")
$"versions=$versions_str" | save --append $env.GITHUB_ENV
'
- name: Download Results Artifacts
run: |
nix run nixpkgs#nushell -- -c '
# Ensure the versions environment variable is correctly set
let versions = env.versions | str split ","
foreach $version in $versions {
let artifact_name = "merge_results-$version"
Expand All @@ -202,6 +204,7 @@ jobs:
}
'
- name: Combine Results
id: combine
run: |
Expand Down

0 comments on commit 90a45f4

Please sign in to comment.