summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/job-needs-context-contains-result/push.yml
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/runner/testdata/job-needs-context-contains-result/push.yml')
-rw-r--r--pkg/runner/testdata/job-needs-context-contains-result/push.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/runner/testdata/job-needs-context-contains-result/push.yml b/pkg/runner/testdata/job-needs-context-contains-result/push.yml
new file mode 100644
index 0000000..0ecbcea
--- /dev/null
+++ b/pkg/runner/testdata/job-needs-context-contains-result/push.yml
@@ -0,0 +1,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