summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/if-expressions/push.yml
blob: 36535b3d94d41d13a96a9eba2b198ab7274a1835 (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
29
on: push
jobs:
  mytest:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      # - run: exit 1
      - uses: ./
        if: failure()
      - run: echo Success
        shell: bash
      - run: echo Success
        if: success()
        shell: bash
      - run: exit 1
        shell: bash
      - run: echo "Shouldn't run"
        if: success()
        shell: bash
      - run: echo "Shouldn't run2"
        shell: bash
      - run: echo expected to run
        if: failure()
        shell: bash
  next:
    needs: mytest
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2