From 8b3a83de6c465e65201dbb4c81bdc1b7d8af62a4 Mon Sep 17 00:00:00 2001 From: Roshan Khatri Date: Wed, 3 Apr 2024 02:12:33 +0000 Subject: [PATCH] debug --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0485ed0..328b0d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,9 +67,16 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Print matrix + - name: Print Matrix JSON + id: print-matrix run: | - echo "matrix: ${{ matrix }}" + echo "::set-output name=matrix_json::$(echo '$MATRIX' | jq -R . | jq -s -R 'split("\n")[:-1] | map(split("=") | {(.[0]): .[1]}) | add')" + env: + MATRIX: ${{ toJson(matrix) }} + + - name: Output Matrix JSON + run: | + echo "${{ steps.print-matrix.outputs.matrix_json }}" - name: Build and push uses: docker/build-push-action@v5