mirror of https://code.forgejo.org/forgejo/act
29 lines
450 B
YAML
29 lines
450 B
YAML
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
|