Skip to content

Commit 838f25e

Browse files
committed
chore/security : fix ci
1 parent e9ed960 commit 838f25e

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)