File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -139,20 +139,18 @@ jobs:
139139 --option min-throughput-per-hour=1000 \
140140 2>&1 | tee $WORKER_LOG_DIR/scenario.log
141141
142- SCENARIO_EXIT_CODE=${PIPESTATUS[0]}
143- echo "SCENARIO_EXIT_CODE=$SCENARIO_EXIT_CODE" >> $GITHUB_ENV
144- exit $SCENARIO_EXIT_CODE
142+ echo "SCENARIO_EXIT_CODE=${PIPESTATUS[0]}" >> $GITHUB_ENV
145143
146144 - name : Upload logs on failure
147- if : failure()
145+ if : env.SCENARIO_EXIT_CODE != '0'
148146 uses : actions/upload-artifact@v4
149147 with :
150148 name : throughput-stress-logs
151149 path : ${{ env.WORKER_LOG_DIR }}
152150 retention-days : 30
153151
154152 - name : Notify Slack on failure
155- if : failure()
153+ if : env.SCENARIO_EXIT_CODE != '0'
156154 uses : slackapi/slack-github-action@v2
157155 with :
158156 payload : |
You can’t perform that action at this time.
0 commit comments