File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -952,7 +952,13 @@ jobs:
952
952
953
953
job_e2e_prepare :
954
954
name : Prepare E2E tests
955
- if :
955
+ # We want to run this if:
956
+ # - The build job was successful, not skipped
957
+ # - AND if the profiling node bindings were either successful or skipped
958
+ # AND if this is not a PR from a fork or dependabot
959
+ if : |
960
+ always() && needs.job_build.result == 'success' &&
961
+ (needs.job_compile_bindings_profiling_node.result == 'success' || needs.job_compile_bindings_profiling_node.result == 'skipped') &&
956
962
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
957
963
github.actor != 'dependabot[bot]'
958
964
needs : [job_get_metadata, job_build, job_compile_bindings_profiling_node]
@@ -1014,7 +1020,9 @@ jobs:
1014
1020
name : E2E ${{ matrix.label || matrix.test-application }} Test
1015
1021
# We only run E2E tests for non-fork PRs because the E2E tests require secrets to work and they can't be accessed from forks
1016
1022
# Dependabot PRs sadly also don't have access to secrets, so we skip them as well
1023
+ # We need to add the `always()` check here because the previous step has this as well :(
1017
1024
if :
1025
+ always() && needs.job_e2e_prepare.result == 'success' &&
1018
1026
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
1019
1027
github.actor != 'dependabot[bot]'
1020
1028
needs : [job_get_metadata, job_build, job_e2e_prepare]
You can’t perform that action at this time.
0 commit comments