From 2c5c26f9c82b8933d1e963df099b1757a37065db Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Tue, 15 Apr 2025 22:00:01 -0400 Subject: [PATCH] Fix retry on failure/cancelled example (#174) --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b89cb3a..c6c9930 100644 --- a/README.md +++ b/README.md @@ -122,14 +122,12 @@ For example, this workflow will ensure that the cache is saved if a step fails ( - name: Load Julia packages from cache id: julia-cache uses: julia-actions/cache@v2 - with: - cache-name: foo # do whatever you want here (that might fail) - - name: Save Julia depot cache on failure + - name: Save Julia depot cache on cancel or failure id: julia-cache-save - if: failure() && steps.julia-cache.outputs.cache-hit != 'true' + if: cancelled() || failure() uses: actions/cache/save@v4 with: path: |