Skip to content

Commit 95ca1ef

Browse files
committed
Output CONFIG_ID to GitHub Actions.
1 parent 8d0b33e commit 95ca1ef

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/scripts/extract-skipped-tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ CONFIG_ID="${CONFIG_ID//[^a-zA-Z0-9_-]/_}"
99

1010
echo "Extracting skipped tests for configuration: ${CONFIG_ID}"
1111

12+
# Output CONFIG_ID to GitHub Actions
13+
echo "CONFIG_ID=${CONFIG_ID}" >> "$GITHUB_OUTPUT"
14+
1215
# Extract skipped tests from XML files using xmllint
1316
SKIPPED_FOUND=false
1417

.github/workflows/reusable-phpunit-tests-v3.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ jobs:
254254
DB_INNOVATION: ${{ inputs.db-innovation && 'innovation' || 'stable' }}
255255
TESTS_DOMAIN: ${{ inputs.tests-domain }}
256256
run: |
257-
CONFIG_OUTPUT=$(./.github/scripts/extract-skipped-tests.sh \
257+
./.github/scripts/extract-skipped-tests.sh \
258258
"${PHP_VERSION}" \
259259
"${DB_TYPE}" \
260260
"${DB_VERSION}" \
@@ -263,11 +263,7 @@ jobs:
263263
"${TEST_GROUPS}" \
264264
"${OS}" \
265265
"${DB_INNOVATION}" \
266-
"${TESTS_DOMAIN}")
267-
268-
# Extract CONFIG_ID from the script output
269-
CONFIG_ID=$(echo "$CONFIG_OUTPUT" | grep "CONFIG_ID=" | cut -d= -f2)
270-
echo "CONFIG_ID=${CONFIG_ID}" >> "$GITHUB_OUTPUT"
266+
"${TESTS_DOMAIN}"
271267
272268
- name: Upload skipped tests summary
273269
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2

0 commit comments

Comments
 (0)