From 5cbf14ec29ef599c4003f0023bb12dee4a5d96b6 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Mon, 6 Oct 2025 12:03:03 -0400 Subject: [PATCH] ci: avoid cache save during racy cancellation of GitHub Actions jobs --- .github/actions/fetch_ctk/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/fetch_ctk/action.yml b/.github/actions/fetch_ctk/action.yml index be7536c638..6cec965105 100644 --- a/.github/actions/fetch_ctk/action.yml +++ b/.github/actions/fetch_ctk/action.yml @@ -140,7 +140,7 @@ runs: ls -l $CUDA_PATH - name: Upload CTK cache - if: ${{ always() && + if: ${{ !cancelled() && steps.ctk-get-cache.outputs.cache-hit != 'true' }} uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: