Skip to content

Commit ee912fe

Browse files
committed
fix container matrix
1 parent 285049f commit ee912fe

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/container-build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,22 @@ jobs:
99
prepare-matrix:
1010
runs-on: ubuntu-22.04
1111
outputs:
12-
matrix: ${{ steps.matrix.outputs.output }}
12+
matrix: ${{ steps.set-matrix.outputs.matrix }}
1313
steps:
1414
- name: Dump GitHub context
1515
env:
1616
GITHUB_CONTEXT: ${{ toJson(github) }}
1717
run: |
1818
echo "$GITHUB_CONTEXT"
1919
- uses: actions/checkout@v4
20-
- uses: fabasoad/data-format-converter-action@main
21-
id: matrix
20+
- uses: fabasoad/data-format-converter-action@v1
21+
id: converter
2222
with:
23-
input: ".github/container-matrix.yml"
23+
source-pattern: ".github/container-matrix.yml"
2424
from: "yaml"
2525
to: "json"
26+
- id: set-matrix
27+
run: echo "matrix=$(jq -c . < ${{ steps.converter.outputs.result-path }}/container-matrix.json )" >> $GITHUB_OUTPUT
2628

2729
build:
2830
name: Build container

0 commit comments

Comments
 (0)