blob: 4ae6af86e004192e757ccf241ddcb321b9042d0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
on: push
jobs:
fail:
runs-on: ubuntu-latest
steps:
- run: exit 1
suc1:
if: success() || failure()
needs:
- fail
runs-on: ubuntu-latest
steps:
- run: exit 0
suc2:
if: success() || failure()
needs:
- fail
runs-on: ubuntu-latest
steps:
- run: exit 0
next:
needs:
- suc1
- suc2
runs-on: ubuntu-latest
steps:
- run: echo should never reach here
- run: exit 1
|