mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-27 03:13:54 +08:00
Setup GCS as primary cache option. Fallback to GH if GCS not setup
Basically, do exactly what GH did to save and restore cache with the exception being that the files are stored on GCS.
This commit is contained in:
parent
5a3ec84eff
commit
6ec565b197
10 changed files with 1063 additions and 7448 deletions
|
@ -26,6 +26,13 @@ inputs:
|
|||
description: 'Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache'
|
||||
default: 'false'
|
||||
required: false
|
||||
gcs-bucket:
|
||||
description: 'Google Cloud Storage bucket name to use for caching. When provided, GCS will be used as the cache backend.'
|
||||
required: false
|
||||
gcs-path-prefix:
|
||||
description: 'Optional prefix path within the GCS bucket for cache files'
|
||||
required: false
|
||||
default: 'github-cache'
|
||||
save-always:
|
||||
description: 'Run the post step to save the cache even if another step before fails'
|
||||
default: 'false'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue