Allow use of caches 'read-only'

To avoid evicting useful entries, some pipeline may benefit from using existing
cache entries without writing any changes back to the cache.

Fixes #62
This commit is contained in:
Daz DeBoer 2021-08-17 16:15:28 -06:00
parent 543cacb256
commit a693ccda4b
No known key found for this signature in database
GPG key ID: DD6B9F0B06683D5D
4 changed files with 31 additions and 0 deletions

View file

@ -51,6 +51,10 @@ inputs:
description: Whether to restore only if exact match, default to 'false'
required: false
default: false
cache-read-only:
description: When 'true', existing entries will be read from the cache but no entries will be written
required: false
default: false
outputs:
build-scan-url: