Skip to content

Commit

Permalink
feat(action): Verify no matching cache before save
Browse files Browse the repository at this point in the history
Prior to saving cache, verify that there is no cache with a matching key
already cached. Previously, we checked if a cache key matching our cache
was present in the load step; if not, we would then proceed to save the
cache in the save step (assuming we were not in read-only mode and that
there were indeed new Docker images to save). This is problematic if
the action is being run in parallel for multiple jobs; in that case,
there could be multiple, unnecessary cache saves if the cache initially
misses but is subsequently saved.
  • Loading branch information
mwarres committed Mar 6, 2024
1 parent 055e746 commit a154f3d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Loading

0 comments on commit a154f3d

Please sign in to comment.