summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/job-needs-context-contains-result/push.yml
blob: 0ecbcea1ec42890805c83aa6b5294800a67b3a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
on:
  push:
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - run: exit 0
  assert:
    needs: test
    if: |
      ( always() && !cancelled() ) && (
      ( needs.test.result != 'success' || !success() ) )
    runs-on: ubuntu-latest
    steps:
    - run: exit 1