Skip to content

Commit 832fa8b

Browse files
committed
ci: run clean step even on failed runs
Add `if: always()` to the clean steps so workspace artifacts are trimmed before cache upload even when a prior step fails. https://claude.ai/code/session_014NgdhJMEQSguQ8yXAuTfnq
1 parent e3900fb commit 832fa8b

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/benchmark.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ jobs:
117117
run: node ci/github-actions/check-for-performance-regressions.js
118118

119119
- name: Clean workspace artifacts before cache
120+
if: always()
120121
continue-on-error: true
121122
shell: bash
122123
run: cargo clean --workspace

.github/workflows/clippy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
run: ./test.sh
6161

6262
- name: Clean workspace artifacts before cache
63+
if: always()
6364
continue-on-error: true
6465
shell: bash
6566
run: cargo clean --workspace

.github/workflows/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ jobs:
618618
asset_content_type: application/x-compressed-tar
619619

620620
- name: Clean workspace artifacts before cache
621+
if: always()
621622
continue-on-error: true
622623
shell: bash
623624
run: cargo clean --workspace

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
run: ./test.sh --release
7676

7777
- name: Clean workspace artifacts before cache
78+
if: always()
7879
continue-on-error: true
7980
shell: bash
8081
run: cargo clean --workspace

0 commit comments

Comments
 (0)