Skip to content

Commit dc7dd91

Browse files
committed
skip when no tests ???
1 parent 9827c38 commit dc7dd91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ jobs:
873873
name: E2E ${{ matrix.label || matrix.test-application }} Test
874874
# We need to add the `always()` check here because the previous step has this as well :(
875875
# See: https://github.com/actions/runner/issues/2205
876-
if: always() && needs.job_e2e_prepare.result == 'success'
876+
if: always() && needs.job_e2e_prepare.result == 'success' && fromJSON(needs.job_e2e_prepare.outputs.matrix).include.length > 0
877877
needs: [job_get_metadata, job_build, job_e2e_prepare]
878878
runs-on: ubuntu-20.04
879879
timeout-minutes: 15
@@ -994,6 +994,7 @@ jobs:
994994
# See: https://github.com/actions/runner/issues/2205
995995
if:
996996
always() && needs.job_e2e_prepare.result == 'success' &&
997+
fromJson(needs.job_e2e_prepare.outputs.matrix-optional).include.length > 0 &&
997998
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
998999
github.actor != 'dependabot[bot]'
9991000
needs: [job_get_metadata, job_build, job_e2e_prepare]

0 commit comments

Comments
 (0)