Skip to content

Commit 5cbf14e

Browse files
committed
ci: avoid cache save during racy cancellation of GitHub Actions jobs
1 parent b09d7ed commit 5cbf14e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/fetch_ctk/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ runs:
140140
ls -l $CUDA_PATH
141141
142142
- name: Upload CTK cache
143-
if: ${{ always() &&
143+
if: ${{ !cancelled() &&
144144
steps.ctk-get-cache.outputs.cache-hit != 'true' }}
145145
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
146146
with:

0 commit comments

Comments
 (0)