File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -68,20 +68,24 @@ jobs:
68
68
shell : bash -l {0}
69
69
run : |
70
70
if [[ "${{ steps.action-run.outcome }}" == "success" && ${{ matrix.expected-failure }} == "true" ]]; then
71
- # unexpected failure
71
+ # unexpected pass
72
72
echo "workflow xpassed"
73
- echo " STATUS=1" >> $GITHUB_ENV
73
+ export STATUS=1
74
74
elif [[ "${{ steps.action-run.outcome }}" == "failure" && ${{ matrix.expected-failure }} == "false" ]]; then
75
- # unexpected pass
75
+ # unexpected failure
76
76
echo "workflow failed"
77
- echo "STATUS=2" >> $GITHUB_ENV
78
- elif [[ "${{ steps.action-run.outcome }}" == "success" ]]; then
77
+ export STATUS=2
78
+ elif [[ "${{ steps.action-run.outcome }}" == "success" && ${{ matrix.expected-failure }} == "false" ]]; then
79
+ # normal pass
80
+ echo "workflow passed"
81
+ export STATUS=0
82
+ elif [[ "${{ steps.action-run.outcome }}" == "success" && ${{ matrix.expected-failure }} == "true" ]]; then
79
83
# normal pass
80
- echo "passed "
81
- echo " STATUS=0" >> $GITHUB_ENV
84
+ echo "workflow xfailed "
85
+ export STATUS=0
82
86
else
83
87
# cancelled
84
88
echo "workflow cancelled"
85
- echo " STATUS=3" >> $GITHUB_ENV
89
+ export STATUS=3
86
90
fi
87
- exit ${{ env. STATUS }}
91
+ exit $STATUS
You can’t perform that action at this time.
0 commit comments