Skip to content

Commit 6f7ce25

Browse files
committed
chore: parse matrix config directly
1 parent 60dd2dd commit 6f7ce25

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/dockerhub-release-matrix.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,13 @@ jobs:
178178
id: get_versions
179179
run: |
180180
nix run nixpkgs#nushell -- -c '
181-
# Extract the versions from prepare.outputs.matrix_config
182-
let versions = ${{ fromJson(needs.prepare.outputs.matrix_config).include }} | get version
183-
echo "Versions: $versions"
181+
# Parse the matrix configuration directly
182+
let matrix_config = ${{ fromJson(needs.prepare.outputs.matrix_config) }}
183+
184+
# Extract the versions as a list
185+
let versions = $matrix_config.include | get version
184186
185-
# Set the versions to an environment variable in GitHub Actions' environment
187+
echo "Versions: $versions"
186188
let versions_str = ($versions | join ",")
187189
$"versions=$versions_str" | save --append $env.GITHUB_ENV
188190
'
@@ -199,6 +201,7 @@ jobs:
199201
name: $artifact_name
200202
}
201203
'
204+
202205
- name: Combine Results
203206
id: combine
204207
run: |

0 commit comments

Comments
 (0)