File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,14 +55,17 @@ jobs:
5555 # Load build matrix configuration directly from YAML
5656 echo "Loading matrix configuration for project: $PROJECT"
5757
58- # Extract the include section directly and output as compact JSON
59- MATRIX_JSON =$(yq eval ".projects.${PROJECT}" "$CONFIG_FILE" -o=json -I=0)
58+ # Extract ONLY the include section and output as compact JSON
59+ INCLUDE_ARRAY =$(yq eval ".projects.${PROJECT}.include " "$CONFIG_FILE" -o=json -I=0)
6060
61- if [[ "$MATRIX_JSON " == "null" ]]; then
62- echo "No configuration found for project '$PROJECT'!"
61+ if [[ "$INCLUDE_ARRAY " == "null" ]]; then
62+ echo "No include configuration found for project '$PROJECT'!"
6363 exit 1
6464 fi
6565
66+ # Wrap in the matrix format expected by GitHub Actions
67+ MATRIX_JSON="{\"include\":$INCLUDE_ARRAY}"
68+
6669 echo "Matrix configuration loaded successfully"
6770 echo "MATRIX: $MATRIX_JSON"
6871 echo "matrix=$MATRIX_JSON" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments