Add read-only feature

When `read-only` is `true`, the cache is only restored and not saved. This allows for sharing the cache with multiple steps even if these steps may change them, and speeds them up regardless.
This commit is contained in:
Martijn Hols 2020-11-29 10:50:39 +01:00
parent 9c77c9dbfc
commit b917253c33
9 changed files with 2425 additions and 2323 deletions

View file

@ -14,6 +14,9 @@ inputs:
upload-chunk-size:
description: 'The chunk size used to split up large files during upload, in bytes'
required: false
read-only:
description: 'Set to true to never save the cache'
required: false
outputs:
cache-hit:
description: 'A boolean value to indicate an exact match was found for the primary key'