Skip to content

Commit 2e33abc

Browse files
committed
ci: fix duplicate test-report if in workflows
1 parent fb71dd8 commit 2e33abc

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,9 @@ jobs:
230230
run: exit 1
231231

232232
test-report:
233-
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
233+
if: (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch') && always() && !contains(needs.*.result, 'skipped')
234234
needs: [generic-tests, e2e-tests]
235235
name: test-report
236-
if: always() && !contains(needs.*.result, 'skipped')
237236
runs-on: ubuntu-latest
238237
steps:
239238
- name: Checkout

.github/workflows/build_and_test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,9 @@ jobs:
231231
run: exit 1
232232

233233
test-report:
234-
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
234+
if: (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch') && always() && !contains(needs.*.result, 'skipped')
235235
needs: [generic-tests, e2e-tests]
236236
name: test-report
237-
if: always() && !contains(needs.*.result, 'skipped')
238237
runs-on: ubuntu-latest
239238
steps:
240239
- name: Checkout

0 commit comments

Comments
 (0)