github.com/nektos/act@v0.2.63/pkg/runner/testdata/job-needs-context-contains-result/push.yml (about)

     1  on:
     2    push:
     3  jobs:
     4    test:
     5      runs-on: ubuntu-latest
     6      steps:
     7      - run: exit 0
     8    assert:
     9      needs: test
    10      if: |
    11        ( always() && !cancelled() ) && (
    12        ( needs.test.result != 'success' || !success() ) )
    13      runs-on: ubuntu-latest
    14      steps:
    15      - run: exit 1