github.com/nektos/act@v0.2.63/pkg/runner/testdata/if-expressions/push.yml (about)

     1  on: push
     2  jobs:
     3    mytest:
     4      runs-on: ubuntu-latest
     5      steps:
     6        - uses: actions/checkout@v2
     7        # - run: exit 1
     8        - uses: ./
     9          if: failure()
    10        - run: echo Success
    11          shell: bash
    12        - run: echo Success
    13          if: success()
    14          shell: bash
    15        - run: exit 1
    16          shell: bash
    17        - run: echo "Shouldn't run"
    18          if: success()
    19          shell: bash
    20        - run: echo "Shouldn't run2"
    21          shell: bash
    22        - run: echo expected to run
    23          if: failure()
    24          shell: bash
    25    next:
    26      needs: mytest
    27      runs-on: ubuntu-latest
    28      steps:
    29        - uses: actions/checkout@v2