Skip to content

Commit 7345765

Browse files
authored
Merge pull request #6530 from NHSDigital/fix-branch-protection
Fix branch protection
2 parents 3ae3bd7 + 12ee625 commit 7345765

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/end-to-end-tests-on-pull-request.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ jobs:
3030
name: Ensure E2E tests ran successfully
3131
runs-on: ubuntu-latest
3232
needs: [aws-e2e-flow, local-e2e-flow]
33-
if: |
34-
!cancelled() && (
35-
needs.aws-e2e-flow.result == 'success' ||
36-
needs.local-e2e-flow.result == 'success'
37-
)
33+
if: always()
3834
steps:
39-
- name: Output result
40-
run: echo "E2E tests ran successfully"
35+
- name: Fail if neither end-to-end job succeeded
36+
if: |
37+
needs.aws-e2e-flow.result != 'success' &&
38+
needs.local-e2e-flow.result != 'success'
39+
run: exit 1

0 commit comments

Comments
 (0)