Skip to content

Commit

Permalink
chore: more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
devops-chris committed Dec 28, 2023
1 parent 9f7cc34 commit 097acaa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/actions/test_matrix/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ inputs:
event: # Event type (e.g., push, pull_request)
required: true

outputs:
matrix:
description: "Matrix"
value: ${{ steps.set-matrix.outputs.matrix }}

runs:
using: 'composite'
steps:
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/test_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,15 @@ jobs:
steps:
- name: Use matrix
run: |
echo "Component: ${{ matrix.components }}"
echo "Paths: ${{ matrix.paths }}"
echo "Dockerfile: ${{ matrix.docker_files }}"
echo "Working Directory: ${{ matrix.working_dirs }}"
echo "Image Name: ${{ matrix.image_names }}"
matrix="${{ needs.set-matrix.outputs.matrix }}"
components=$(echo "$matrix" | jq -r '.components | join(",")')
paths=$(echo "$matrix" | jq -r '.paths | join(",")')
docker_files=$(echo "$matrix" | jq -r '.docker_files | join(",")')
working_dirs=$(echo "$matrix" | jq -r '.working_dirs | join(",")')
image_names=$(echo "$matrix" | jq -r '.image_names | join(",")')
echo "Component: $components"
echo "Paths: $paths"
echo "Dockerfile: $docker_files"
echo "Working Directory: $working_dirs"
echo "Image Name: $image_names"

0 comments on commit 097acaa

Please sign in to comment.