File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,19 @@ jobs:
5555 uses : ./
5656 with :
5757 environment-paths : " ${{ toJSON(matrix.env-paths) }}"
58- - name : evaluate failures
58+ - name : detect unexpected failures
5959 if : |
60- (
61- (failure() && ${{ matrix.expected-failure }} != "true")
62- || (success() && ${{ matrix.expected-failure }} != "false")
63- )
60+ failure() && ${{ matrix.expected-failure }} == "false"
6461 shell : bash -l {0}
65- run : exit 1
62+ run : |
63+ echo "STATUS=1" >> $GITHUB_ENV
64+ - name : detect unexpected passes
65+ if : |
66+ success() && ${{ matrix.expected-failure }} == "true"
67+ shell : bash -l {0}
68+ run : |
69+ echo "STATUS=0" >> $GITHUB_ENV
70+ - name : evaluate status
71+ shell : bash -l {0}
72+ run : |
73+ exit ${{ env.STATUS }}
You can’t perform that action at this time.
0 commit comments