@@ -250,40 +250,40 @@ jobs:
250250 run : " composer test:examples"
251251
252252 - name : Upload test results to Codecov.io
253- if : ${{ !cancelled() }} && ${{ matrix.php-version == '8.2' }} && ${{ matrix.dependencies == 'locked' }}
253+ if : ${{ !cancelled() && matrix.php-version == '8.2' && matrix.dependencies == 'locked' }}
254254 uses : codecov/test-results-action@v1
255255 with :
256256 token : ${{ secrets.CODECOV_TOKEN }}
257257 directory : ./var/phpunit/logs
258258
259259 - name : Upload code coverage data to Codecov.io
260- if : ${{ matrix.php-version == '8.2' }} && ${{ matrix.dependencies == 'locked' }}
260+ if : ${{ !cancelled() && matrix.php-version == '8.2' && matrix.dependencies == 'locked' }}
261261 uses : codecov/codecov-action@v4
262262 with :
263263 token : ${{ secrets.CODECOV_TOKEN }}
264264 directory : ./var/phpunit/coverage/clover
265265
266266 - name : Get the branch name and SHA
267- if : ${{ github.event_name == 'push' }} && ${{ matrix.php-version == '8.2' }} && ${{ matrix.dependencies == 'locked' }}
267+ if : ${{ github.event_name == 'push' && matrix.php-version == '8.2' && matrix.dependencies == 'locked' }}
268268 run : |
269269 branch_name=${GITHUB_REF#refs/heads/}
270270 commit_sha=$(git rev-parse HEAD)
271271 echo "codecov_branch_name=$branch_name" >> $GITHUB_ENV
272272 echo "codecov_commit_sha=$commit_sha" >> $GITHUB_ENV
273273
274274 - name : Save commit SHA to file
275- if : ${{ github.event_name == 'push' }} && ${{ matrix.php-version == '8.2' }} && ${{ matrix.dependencies == 'locked' }}
275+ if : ${{ github.event_name == 'push' && matrix.php-version == '8.2' && matrix.dependencies == 'locked' }}
276276 run : echo -n "${{ env.codecov_commit_sha }}" > codecov-base-commit-sha-${{ env.codecov_branch_name }}.txt
277277
278278 - name : Upload commit SHA as artifact
279- if : ${{ github.event_name == 'push' }} && ${{ matrix.php-version == '8.2' }} && ${{ matrix.dependencies == 'locked' }}
279+ if : ${{ github.event_name == 'push' && matrix.php-version == '8.2' && matrix.dependencies == 'locked' }}
280280 uses : actions/upload-artifact@v4
281281 with :
282282 name : codecov-base-commit-sha-${{ env.codecov_branch_name }}
283283 path : codecov-base-commit-sha-${{ env.codecov_branch_name }}.txt
284284
285285 - name : " Put SHA to step summary"
286- if : ${{ github.event_name == 'push' }} && ${{ matrix.php-version == '8.2' }} && ${{ matrix.dependencies == 'locked' }}
286+ if : ${{ github.event_name == 'push' && matrix.php-version == '8.2' && matrix.dependencies == 'locked' }}
287287 run : |
288288 echo "Baseline commit SHA for Codecov: ${{ env.codecov_commit_sha }}" >> $GITHUB_STEP_SUMMARY
289289
0 commit comments