Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
roshkhatri committed Apr 3, 2024
1 parent e7ad291 commit 8b3a83d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b3a83d

Please sign in to comment.