Skip to content

Commit bd76313

Browse files
committed
Change final report condition
1 parent 36377dd commit bd76313

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/reusable-storage-dependant-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,10 @@ jobs:
171171

172172
- name: Make Final Test report
173173
if: |
174-
(github.event_name == 'workflow_dispatch' && (steps.reprocessing.outcome != 'cancelled' || steps.complex_tests.outcome != 'cancelled'))
175-
|| (github.event_name != 'workflow_dispatch' && (steps.reprocessing.outcome == 'failure' || steps.complex_tests.outcome == 'failure'))
174+
(github.event_name == 'push' && (steps.reprocessing.outcome != 'cancelled' || steps.complex_tests.outcome != 'cancelled'))
175+
|| (github.event_name == 'pull_request' && (steps.reprocessing.outcome != 'cancelled' || steps.complex_tests.outcome != 'cancelled'))
176+
|| (github.event_name == 'workflow_dispatch' && (steps.reprocessing.outcome != 'cancelled' || steps.complex_tests.outcome != 'cancelled'))
177+
|| (steps.reprocessing.outcome == 'failure' || steps.complex_tests.outcome == 'failure')
176178
timeout-minutes: 1
177179
uses: dorny/test-reporter@v2.1.1
178180
with:

.github/workflows/reusable-storage-independant-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ jobs:
122122

123123
- name: Make Final Test report
124124
if: |
125-
(github.event_name == 'workflow_dispatch' && steps.complex_tests.outcome != 'cancelled')
126-
|| (github.event_name != 'workflow_dispatch' && steps.complex_tests.outcome == 'failure')
125+
(github.event_name == 'push' && steps.complex_tests.outcome != 'cancelled')
126+
|| (github.event_name == 'pull_request' && steps.complex_tests.outcome != 'cancelled')
127+
|| (github.event_name == 'workflow_dispatch' && steps.complex_tests.outcome != 'cancelled')
128+
|| steps.complex_tests.outcome == 'failure'
127129
timeout-minutes: 1
128130
uses: dorny/test-reporter@v2.1.1
129131
with:

0 commit comments

Comments
 (0)