Skip to content

Commit f66ab7b

Browse files
committed
fix check
1 parent c5e409a commit f66ab7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
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' && fromJSON(needs.job_e2e_prepare.outputs.matrix).include.length > 0
876+
if: always() && needs.job_e2e_prepare.result == 'success' && needs.job_e2e_prepare.outputs.matrix != '{"include":[]}'
877877
needs: [job_get_metadata, job_build, job_e2e_prepare]
878878
runs-on: ubuntu-20.04
879879
timeout-minutes: 15
@@ -994,7 +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 &&
997+
needs.job_e2e_prepare.outputs.matrix-optional != '{"include":[]}' &&
998998
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
999999
github.actor != 'dependabot[bot]'
10001000
needs: [job_get_metadata, job_build, job_e2e_prepare]

0 commit comments

Comments
 (0)