Skip to content

Commit 379fb51

Browse files
committed
run failure steps even if cancelled
1 parent f611ab0 commit 379fb51

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/nightly-throughput-stress.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)