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:
6868 shell : bash -l {0}
6969 run : |
7070 if [[ "${{ steps.action-run.outcome }}" == "success" && ${{ matrix.expected-failure }} == "true" ]]; then
71- # unexpected failure
71+ # unexpected pass
7272 echo "workflow xpassed"
73- echo " STATUS=1" >> $GITHUB_ENV
73+ export STATUS=1
7474 elif [[ "${{ steps.action-run.outcome }}" == "failure" && ${{ matrix.expected-failure }} == "false" ]]; then
75- # unexpected pass
75+ # unexpected failure
7676 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
7983 # normal pass
80- echo "passed "
81- echo " STATUS=0" >> $GITHUB_ENV
84+ echo "workflow xfailed "
85+ export STATUS=0
8286 else
8387 # cancelled
8488 echo "workflow cancelled"
85- echo " STATUS=3" >> $GITHUB_ENV
89+ export STATUS=3
8690 fi
87- exit ${{ env. STATUS }}
91+ exit $STATUS
You can’t perform that action at this time.
0 commit comments