Skip to content

Commit c39bac0

Browse files
author
Antoine
committed
Fix conditional syntax for coverage report steps in On Release workflow
1 parent 7c2a946 commit c39bac0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/OnRelease.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
dotnet-quality: 'ga'
5656

5757
- name: Merge coverage reports
58-
if: success() || failure() && ${{ matrix.python-version }} == '3.10'
58+
if: (success() || failure()) && ${{ matrix.python-version }} == '3.10'
5959
uses: danielpalme/ReportGenerator-GitHub-Action@v5
6060
with:
6161
reports: tests_reports/**/coverage.xml
@@ -64,7 +64,7 @@ jobs:
6464

6565

6666
- name: coverage report
67-
if: success() || failure() && ${{ matrix.python-version }} == '3.10'
67+
if: s(success() || failure()) && ${{ matrix.python-version }} == '3.10'
6868
uses: irongut/CodeCoverageSummary@v1.3.0
6969
with:
7070
filename: coverage-report/Cobertura.xml
@@ -75,11 +75,11 @@ jobs:
7575
hide_complexity: true
7676

7777
- name: Rename coverage report
78-
if: success() || failure() && ${{ matrix.python-version }} == '3.10'
78+
if: (success() || failure()) && ${{ matrix.python-version }} == '3.10'
7979
run: mv code-coverage-results.md coverage-report/coverage.${{ matrix.python-version }}.md
8080

8181
- name: upload code coverage report
82-
if: success() || failure() && ${{ matrix.python-version }} == '3.10'
82+
if: (success() || failure()) && ${{ matrix.python-version }} == '3.10'
8383
uses: actions/upload-artifact@v4
8484
with:
8585
name: code-coverage-report-${{ matrix.python-version }}

0 commit comments

Comments
 (0)