Skip to content

Commit 6285ee1

Browse files
committed
Try
1 parent 32e99a2 commit 6285ee1

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/CI.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828
env:
2929
COVERAGE_TYPE: none
3030
COVERAGE_ARTIFACT_NAME: coverage-php${{ matrix.php-version }}
31-
outputs:
32-
"php${{ matrix.php-version }}": ${{ steps.output-data.outputs.data }}
3331
strategy:
3432
fail-fast: true
3533
max-parallel: 4
@@ -84,17 +82,22 @@ jobs:
8482
path: "build/coverage-*"
8583
if-no-files-found: error
8684

87-
- name: Prepare output
88-
id: output-data
89-
run: |
90-
echo 'data={ "matrix": {"php-version": "${{ matrix.php-version }}", "artifact": "${{ env.COVERAGE_ARTIFACT_NAME }}"}}' >> $GITHUB_OUTPUT
85+
- uses: hoverkraft-tech/ci-github-common/actions/set-matrix-output@v0.12.1
86+
with:
87+
artifact-name: tests-output
88+
value: '{"php-version": "${{ matrix.php-version }}", "artifact": "${{ env.COVERAGE_ARTIFACT_NAME }}"}'
9189

9290
debug-output:
9391
name: DEBUG
9492
runs-on: ubuntu-latest
9593
needs: [ tests ]
9694
steps:
97-
- run: echo "${{ toJson(needs.tests.outputs.*.matrix) }}"
95+
- name: Fetch tests outputs
96+
id: fetch-data
97+
uses: hoverkraft-tech/ci-github-common/actions/get-matrix-outputs@v0.12.1
98+
with:
99+
artifact-name: tests-output
100+
- run: echo "${{ toJson(steps.fetch-data.outputs.*) }}"
98101
- uses: actions/download-artifact@v4
99102
with:
100103
pattern: coverage-php*

0 commit comments

Comments
 (0)