Skip to content

Commit 9df7187

Browse files
committed
chore: use the matrix config we already have access to
1 parent 2c662f2 commit 9df7187

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,22 +169,24 @@ jobs:
169169
id: get_versions
170170
run: |
171171
nix run nixpkgs#nushell -- -c '
172-
let version = "${{ matrix.version }}"
173-
let release_key = if ($version | str contains "orioledb") {
172+
let versions = "${{ matrix.version }}"
173+
let release_key = if ($versions | str contains "orioledb") {
174174
$"postgresorioledb-17"
175175
} else {
176-
$"postgres($version)"
176+
$"postgres($versions)"
177177
}
178178
let pg_version = (open ansible/vars.yml | get postgres_release | get $release_key | str trim)
179179
180180
let matrix = {include: [{version: $pg_version}]}
181181
let matrix_json = ($matrix | to json -r)
182182
$"matrix=($matrix_json)" | save --append $env.GITHUB_OUTPUT
183183
'
184+
184185
publish:
185186
needs: get_publish_version
186187
strategy:
187-
matrix: ${{ fromJson(needs.get_publish_version.outputs.matrix) }}
188+
matrix:
189+
include: ${{ fromJson(needs.get_publish_version.outputs.matrix).include }}
188190
uses: ./.github/workflows/mirror.yml
189191
with:
190192
version: ${{ matrix.version }}

0 commit comments

Comments
 (0)